MrEpicIsHere777

Untitled

Jan 4th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. ///Wall Position
  2.  
  3. //Positioning
  4. wall_hoff = (640 - wall_width)/2;
  5.  
  6. TLeft.x = wall_hoff;
  7. TLeft.y = wall_voff;
  8.  
  9. TRight.x = room_width - wall_hoff
  10. TRight.y = wall_voff;
  11.  
  12. BRight.x = room_width - wall_hoff
  13. BRight.y = (wall_voff + wall_height) - wall_size;
  14.  
  15. BLeft.x = wall_hoff;
  16. BLeft.y = (wall_voff + wall_height);
  17.  
  18. //Scale
  19. with TLeft
  20. {
  21. image_xscale = other.wall_width;
  22. image_yscale = other.wall_size;
  23. }
  24. with TRight
  25. {
  26. image_xscale = other.wall_size * -1;
  27. image_yscale = other.wall_height;
  28. }
  29. with BRight
  30. {
  31. image_xscale = other.wall_width * -1;
  32. image_yscale = other.wall_size;
  33. }
  34. with BLeft
  35. {
  36. image_xscale = other.wall_size;
  37. image_yscale = other.wall_height * -1;
  38. }
Add Comment
Please, Sign In to add comment