1 |
image_xscale = size; |
2 |
image_yscale = size; |
3 |
timer += 1; |
4 |
obj_mettb_body.hurt = 2; |
5 |
obj_mettb_body.dsf = 2; |
6 |
if (timer == 0) |
7 |
{ |
8 |
shake = 5; |
9 |
speed = 0; |
10 |
x = homex; |
11 |
y = homey; |
12 |
} |
13 |
if (timer >= 0 && timer < 4) |
14 |
{ |
15 |
shake -= 1; |
16 |
image_speed = 0.5; |
17 |
size -= 0.2; |
18 |
} |
19 |
if (timer == 7) |
20 |
{ |
21 |
caster_play(mus_explosion, 1, 1); |
22 |
shake = 0; |
23 |
for (i = 0; i < 12; i += 1) |
24 |
{ |
25 |
g = instance_create(x, y, obj_starburst_x); |
26 |
g.speed = 5.7 + random(0.6); |
27 |
g.friction = 0.24 + random(0.02); |
28 |
g.direction = ((i * 360) / 12) + random(5); |
29 |
} |
30 |
} |
31 |
if (timer > 7 && timer < 10) |
32 |
{ |
33 |
shake += 6; |
34 |
size += 0.75; |
35 |
if (another == 2) |
36 |
size += 0.15; |
37 |
if (another == 3) |
38 |
size += 0.25; |
39 |
} |
40 |
if (timer == 13) |
41 |
{ |
42 |
image_speed = 0; |
43 |
image_index = 0; |
44 |
size = 1; |
45 |
} |
46 |
if (timer >= 13) |
47 |
{ |
48 |
shake -= 2; |
49 |
if (shake < 1) |
50 |
shake = 0; |
51 |
} |
52 |
if (timer > 20) |
53 |
{ |
54 |
if (another != 0) |
55 |
{ |
56 |
if (another == 1) |
57 |
{ |
58 |
global.turntimer = 900; |
59 |
mtb = instance_create(homex, homey, obj_mettheart_burst); |
60 |
mtb.homex = homex; |
61 |
mtb.homey = homey; |
62 |
mtb.another = 2; |
63 |
mtb.timer = 0; |
64 |
instance_destroy(); |
65 |
} |
66 |
if (another == 2) |
67 |
{ |
68 |
mtb = instance_create(homex, homey, obj_mettheart_burst); |
69 |
mtb.homex = homex; |
70 |
mtb.homey = homey; |
71 |
mtb.another = 3; |
72 |
mtb.timer = 0; |
73 |
instance_destroy(); |
74 |
} |
75 |
if (another == 3) |
76 |
{ |
77 |
obj_mettb_body.heartdead = 1; |
78 |
global.turntimer = 900; |
79 |
obj_mettheart_4.lastcon = 3; |
80 |
instance_destroy(); |
81 |
} |
82 |
} |
83 |
else |
84 |
{ |
85 |
if (global.turntimer > 9) |
86 |
global.turntimer = 9; |
87 |
obj_mettb_body.dsf = 0; |
88 |
} |
89 |
} |
90 |
if (shake > 0) |
91 |
{ |
92 |
x = ((homex - 5) + shake) - random(shake * 2); |
93 |
y = (homey + shake) - random(shake * 2); |
94 |
} |
95 |
if (global.turntimer < 0) |
96 |
{ |
97 |
if (another == 0) |
98 |
global.faceemotion = 7; |
99 |
instance_destroy(); |
100 |
} |
101 |
global.faceemotion = 6; |