Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Wall Position
- //Positioning
- wall_hoff = (640 - wall_width)/2;
- TLeft.x = wall_hoff;
- TLeft.y = wall_voff;
- TRight.x = room_width - wall_hoff
- TRight.y = wall_voff;
- BRight.x = room_width - wall_hoff
- BRight.y = (wall_voff + wall_height) - wall_size;
- BLeft.x = wall_hoff;
- BLeft.y = (wall_voff + wall_height);
- //Scale
- with TLeft
- {
- image_xscale = other.wall_width;
- image_yscale = other.wall_size;
- }
- with TRight
- {
- image_xscale = other.wall_size * -1;
- image_yscale = other.wall_height;
- }
- with BRight
- {
- image_xscale = other.wall_width * -1;
- image_yscale = other.wall_size;
- }
- with BLeft
- {
- image_xscale = other.wall_size;
- image_yscale = other.wall_height * -1;
- }
Add Comment
Please, Sign In to add comment