1 | image_angle = direction; |
2 | if (type == 0) |
3 | { |
4 | if (hspeed < 0 && x <= global.idealborder[0]) |
5 | off = 1; |
6 | } |
7 | if (type == 1) |
8 | { |
9 | if (hspeed > 0 && x >= global.idealborder[1]) |
10 | off = 1; |
11 | } |
12 | if (off == 1) |
13 | { |
14 | image_alpha -= 0.12; |
15 | if (image_alpha < 0.05) |
16 | instance_destroy(); |
17 | } |