Advertisement
Guest User

endstep

a guest
Jul 31st, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. End Step:
  2.  
  3. if (room == rbiffPopularity)
  4. {
  5. //wraps the object around the screen if it goes outside the end of it
  6.  
  7. if (x < view_xview[0])
  8. x += view_wview[0];
  9. else if (x >= view_xview[0]+view_wview[0])
  10. x -= view_wview[0];
  11.  
  12. if (y < view_yview[0])
  13. y += view_hview[0];
  14. else if (y >= view_yview[0]+view_hview[0])
  15. y -= view_hview[0];
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement