1 | if (con == 0) |
2 | { |
3 | if (image_index > 17) |
4 | image_index -= 0.4; |
5 | else |
6 | con = 1; |
7 | } |
8 | if (con == 1) |
9 | { |
10 | timer++; |
11 | if (timer == 1) |
12 | { |
13 | sprite_index = spr_plugboy_plug; |
14 | image_index = 0; |
15 | image_speed = 0; |
16 | hspeed = -8; |
17 | friction = 0.5; |
18 | gravity = -1.5; |
19 | spare = instance_create(x - 6, y + 16, obj_werewire_spare2); |
20 | spare.depth = depth + 1; |
21 | x += 6; |
22 | y += 8; |
23 | } |
24 | if (timer == 60) |
25 | instance_destroy(); |
26 | } |