| 1 | if (shake == 0) |
| 2 | { |
| 3 | if (x > (global.idealborder[1] - sprite_width)) |
| 4 | { |
| 5 | x = xprevious; |
| 6 | hspeed = -hspeed; |
| 7 | } |
| 8 | if (x < global.idealborder[0]) |
| 9 | { |
| 10 | x = xprevious; |
| 11 | hspeed = -hspeed; |
| 12 | } |
| 13 | } |
| 14 | if (y > room_height || y < 0) |
| 15 | instance_destroy(); |
| 16 | if (shake == 1) |
| 17 | { |
| 18 | x += (sin(siner / 2) * 2); |
| 19 | image_angle += (sin(siner / 2) * 2); |
| 20 | siner += 1; |
| 21 | } |
| 22 | if (global.mnfight != 2) |
| 23 | instance_destroy(); |