1 | if (vspeed < 0) |
2 | { |
3 | if (y < (global.idealborder[2] - sprite_height)) |
4 | y = global.idealborder[3]; |
5 | } |
6 | if (vspeed > 0) |
7 | { |
8 | if (y > global.idealborder[3]) |
9 | y = global.idealborder[2] - sprite_height; |
10 | } |
11 | if (hspeed < 0 && x < 0) |
12 | instance_destroy(); |
13 | if (hspeed > 0 && x > room_width) |
14 | instance_destroy(); |