Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (x - sprite_width / 2 <= 0) || (x + sprite_width / 2 >= room_width)
- {
- x = xprevious;
- }
- if (y - sprite_height / 2 <= 0) || (y + sprite_height / 2 >= room_height)
- {
- y = yprevious;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement