1 |
timer++; |
2 |
if (con == 0) |
3 |
{ |
4 |
if (timer > 0 && timer < 40) |
5 |
{ |
6 |
} |
7 |
if (timer == 40) |
8 |
{ |
9 |
with (obj_sneo_heartattack_chest_shake) |
10 |
instance_destroy(); |
11 |
obj_spamton_neo_enemy.partsprite[4] = spr_sneo_body_chest_breaks; |
12 |
obj_spamton_neo_enemy.partx[4] = chestoriginx; |
13 |
obj_spamton_neo_enemy.party[4] = chestoriginy; |
14 |
instance_create(obj_spamton_neo_enemy.x + 40, obj_spamton_neo_enemy.y + 80, obj_sneo_heartattack); |
15 |
shard = instance_create(obj_spamton_neo_enemy.x + 40, obj_spamton_neo_enemy.y + 80, obj_sneo_heartattack_glass_shard); |
16 |
shard.direction = 135; |
17 |
shard = instance_create(obj_spamton_neo_enemy.x + 40, obj_spamton_neo_enemy.y + 80, obj_sneo_heartattack_glass_shard); |
18 |
shard.image_index = 1; |
19 |
shard.direction = 170; |
20 |
shard = instance_create(obj_spamton_neo_enemy.x + 40, obj_spamton_neo_enemy.y + 80, obj_sneo_heartattack_glass_shard); |
21 |
shard.image_index = 2; |
22 |
shard.direction = 205; |
23 |
shard = instance_create(obj_spamton_neo_enemy.x + 40, obj_spamton_neo_enemy.y + 80, obj_sneo_heartattack_glass_shard); |
24 |
shard.image_index = 3; |
25 |
shard.direction = 240; |
26 |
} |
27 |
} |
28 |
if (con == 1) |
29 |
{ |
30 |
if (timer == 0) |
31 |
{ |
32 |
with (obj_sneo_heartattack_glass_shard) |
33 |
{ |
34 |
speed = 6; |
35 |
direction += 180; |
36 |
friction = 0; |
37 |
image_alpha = 0; |
38 |
con = 1; |
39 |
timer = 0; |
40 |
} |
41 |
with (obj_sneo_sine_hand) |
42 |
con = 1; |
43 |
with (obj_sneo_sine_hand_controller) |
44 |
instance_destroy(); |
45 |
} |
46 |
if (timer == 60) |
47 |
{ |
48 |
obj_spamton_neo_enemy.partsprite[4] = spr_sneo_body; |
49 |
obj_spamton_neo_enemy.partsprite[5] = spr_sneo_head; |
50 |
instance_destroy(); |
51 |
} |
52 |
} |