SirCumferance

Object back and forth

May 4th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if y < 0 {
  2.     vspeed = abs(vspeed)
  3. }
  4. if y > room_height {
  5.     vspeed = -abs(vspeed)
  6. }
  7. if x < 0 {
  8.     hspeed = abs(hspeed)
  9. }
  10. if x > room_width {
  11.     hspeed = -abs(hspeed)
  12. }
Add Comment
Please, Sign In to add comment