Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///object_tile_connect()
- // Assigns a sprite index depending on which objects are adjacent
- // Returns nothing.
- image_speed = 0;
- image_index = 0;
- if( place_meeting( x + sprite_width, y, object_index)) {image_index |= 1;}
- if( place_meeting( x, y - sprite_height, object_index)) {image_index |= 2;}
- if( place_meeting( x - sprite_width, y, object_index)) {image_index |= 4;}
- if( place_meeting( x, y + sprite_height, object_index)) {image_index |= 8;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement