Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f(move)
- {
- hsp = lengthdir_x(spd, dir);
- vsp = lengthdir_y(spd, dir);
- if(place_meeting(x + hsp, y + vsp, obj_bubble))
- {
- vsp = 0;
- hsp = 0;
- indexes = scr_gameSpace_to_arraySpace(x, y);//get indexes
- gameLocation = scr_arraySpace_to_gameSpace(indexes[0], indexes[1]);//get snap location
- move = false;
- x = gameLocation[0];
- y = gameLocation[1];
- obj_control.IndexFilled[indexes[0], indexes[1]] = self.id;
- scr_check_surrounding(indexes[0], indexes[1], color);
- scr_remove_same();
- obj_shooter.prepNextBubble = true;
- }
- if (place_meeting(x + hsp, y + vsp, obj_wall)) dir = 180 - dir;
- //move bubble
- x += hsp;
- y += vsp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement