1 | if (priority < 0) |
2 | priority = 0; |
3 | if (x < fatalx) |
4 | { |
5 | image_alpha -= 0.2; |
6 | if (image_alpha < 0.1) |
7 | { |
8 | image_alpha = 0; |
9 | if (instance_exists(obj_targetparent)) |
10 | { |
11 | with (obj_targetparent) |
12 | priority -= 1; |
13 | } |
14 | instance_destroy(); |
15 | priority = 999999; |
16 | exit; |
17 | } |
18 | } |
19 | if (priority == 0) |
20 | { |
21 | image_index = 0; |
22 | if (control_check_pressed(0)) |
23 | { |
24 | image_alpha = 1; |
25 | image_speed = 0.5; |
26 | obj_battlethingparent.check = id; |
27 | with (obj_battlethingparent) |
28 | event_user(3); |
29 | control_clear(0); |
30 | with (obj_targetparent) |
31 | event_user(1); |
32 | } |
33 | } |