1 | global.invc -= 1; |
2 | if (global.invc > 0) |
3 | { |
4 | image_speed = 0.5; |
5 | } |
6 | else |
7 | { |
8 | image_index = 0; |
9 | image_speed = 0; |
10 | } |
11 | if (obj_time.left) |
12 | { |
13 | if (movement == 1) |
14 | { |
15 | if (control_check(1) == 1) |
16 | x -= (global.sp / 2); |
17 | else |
18 | x -= global.sp; |
19 | } |
20 | } |
21 | if (obj_time.right) |
22 | { |
23 | if (movement == 1) |
24 | { |
25 | if (control_check(1) == 1) |
26 | x += (global.sp / 2); |
27 | else |
28 | x += global.sp; |
29 | } |
30 | } |
31 | if (obj_time.up) |
32 | { |
33 | if (movement == 1) |
34 | { |
35 | if (control_check(1) == 1) |
36 | y -= (global.sp / 2); |
37 | else |
38 | y -= global.sp; |
39 | } |
40 | } |
41 | if (obj_time.down) |
42 | { |
43 | if (movement == 1) |
44 | { |
45 | if (control_check(1) == 1) |
46 | y += (global.sp / 2); |
47 | else |
48 | y += global.sp; |
49 | } |
50 | } |
51 | if (global.hp < 1) |
52 | script_execute(scr_gameoverb); |