Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if y-8 > room_height
- {
- if room_exists(obj_location.south)
- {
- room_goto(obj_location.south)
- y = 0+8
- }
- }
- if y-8 < 0
- {
- if room_exists(obj_location.north)
- {
- room_goto(obj_location.north)
- y = room_height-8
- }
- }
- if x+8 > room_width
- {
- if room_exists(obj_location.east)
- {
- room_goto(obj_location.east)
- x = 0+8
- }
- }
- if x-8 < 0
- {
- if room_exists(obj_location.west)
- {
- room_goto(obj_location.west)
- x = room_width-8
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment