1 | if (speed == 0) |
2 | image_index = 0; |
3 | if (speed > 0) |
4 | image_speed = 0.25; |
5 | if (hspeed > 0) |
6 | sprite_index = spr_darkman_r; |
7 | if (hspeed < 0) |
8 | sprite_index = spr_darkman_l; |
9 | if (vspeed != 0) |
10 | sprite_index = spr_darkman_d; |
11 | if (mov == 1) |
12 | { |
13 | vspeed = -2; |
14 | mov = 2; |
15 | } |
16 | if (mov == 2) |
17 | { |
18 | if (y < (view_yview[0] - 50)) |
19 | instance_destroy(); |
20 | } |