Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- End Step:
- if (room == rbiffPopularity)
- {
- //wraps the object around the screen if it goes outside the end of it
- if (x < view_xview[0])
- x += view_wview[0];
- else if (x >= view_xview[0]+view_wview[0])
- x -= view_wview[0];
- if (y < view_yview[0])
- y += view_hview[0];
- else if (y >= view_yview[0]+view_hview[0])
- y -= view_hview[0];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement