1 |
with (obj_dmgwriter) |
2 |
instance_destroy(); |
3 |
if (con == 0) |
4 |
{ |
5 |
timer++; |
6 |
if (timer < 20) |
7 |
{ |
8 |
with (obj_heroparent) |
9 |
{ |
10 |
if (image_alpha > 0) |
11 |
image_alpha -= 0.1; |
12 |
} |
13 |
with (obj_queen_enemy) |
14 |
{ |
15 |
if (image_alpha > 0) |
16 |
image_alpha -= 0.1; |
17 |
} |
18 |
} |
19 |
if (timer < 45 && variant == 0) |
20 |
barprogress += 2; |
21 |
if (timer < 15 && variant == 1) |
22 |
barprogress += 6; |
23 |
if ((timer > 90 && variant == 0) || (timer > 30 && variant == 1)) |
24 |
{ |
25 |
con = 1; |
26 |
timer = 0; |
27 |
} |
28 |
} |
29 |
if (con == 1) |
30 |
{ |
31 |
timer++; |
32 |
var xx = obj_growtangle.x; |
33 |
var yy = obj_growtangle.y; |
34 |
poppuptimer++; |
35 |
if (poppuptimer == 2) |
36 |
{ |
37 |
var _error; |
38 |
if (poppupcount == 0) |
39 |
_error = instance_create(xx + 60, yy - 75, obj_queen_poppup_error); |
40 |
if (poppupcount == 1) |
41 |
_error = instance_create(xx + 20, yy - 40, obj_queen_poppup_error); |
42 |
if (poppupcount == 2) |
43 |
_error = instance_create(xx - 75, yy, obj_queen_poppup_error); |
44 |
if (poppupcount == 3) |
45 |
_error = instance_create(xx + 90, yy - 15, obj_queen_poppup_error); |
46 |
if (poppupcount == 4) |
47 |
_error = instance_create(xx + 45, yy - 5, obj_queen_poppup_error); |
48 |
if (poppupcount == 5) |
49 |
_error = instance_create(xx, yy + 13, obj_queen_poppup_error); |
50 |
if (poppupcount == 6) |
51 |
_error = instance_create(xx + 57, yy + 75, obj_queen_poppup_error); |
52 |
if (poppupcount == 7) |
53 |
_error = instance_create(xx + 15, yy + 99, obj_queen_poppup_error); |
54 |
if (poppupcount == 8) |
55 |
_error = instance_create(xx - 20, yy + 65, obj_queen_poppup_error); |
56 |
if (poppupcount == 9) |
57 |
_error = instance_create(xx - 50, yy + 85, obj_queen_poppup_error); |
58 |
if (poppupcount == 10) |
59 |
_error = instance_create(xx - 83, yy + 50, obj_queen_poppup_error); |
60 |
if (poppupcount == 11) |
61 |
_error = instance_create(xx - 25, yy - 85, obj_queen_poppup_error); |
62 |
if (poppupcount == 12) |
63 |
_error = instance_create(xx - 70, yy - 40, obj_queen_poppup_error); |
64 |
if (poppupcount == 13) |
65 |
_error = instance_create(xx + 90, yy + 30, obj_queen_poppup_error); |
66 |
if (poppupcount <= 13) |
67 |
_error.depth -= poppupcount; |
68 |
poppuptimer = 0; |
69 |
poppupcount++; |
70 |
} |
71 |
if (timer == 24) |
72 |
{ |
73 |
d = instance_create(xx - 200, yy - 100, obj_queen_explodinghead_intro); |
74 |
d.ultimate = 1; |
75 |
d.first = 1; |
76 |
} |
77 |
if (timer == 40) |
78 |
{ |
79 |
d = instance_create(xx + 200, yy, obj_queen_explodinghead_intro); |
80 |
d.ultimate = 1; |
81 |
d.first = 1; |
82 |
} |
83 |
if (timer == 56) |
84 |
{ |
85 |
d = instance_create(xx - 190, yy + 100, obj_queen_explodinghead_intro); |
86 |
d.ultimate = 1; |
87 |
d.first = 1; |
88 |
} |
89 |
if (timer == 72) |
90 |
{ |
91 |
d = instance_create(xx + 200, yy - 100, obj_queen_explodinghead_intro); |
92 |
d.ultimate = 1; |
93 |
d.first = 1; |
94 |
} |
95 |
if (timer == 88) |
96 |
{ |
97 |
d = instance_create(xx - 200, yy, obj_queen_explodinghead_intro); |
98 |
d.ultimate = 1; |
99 |
d.first = 1; |
100 |
} |
101 |
if (timer == 104) |
102 |
{ |
103 |
d = instance_create(xx + 190, yy + 100, obj_queen_explodinghead_intro); |
104 |
d.ultimate = 1; |
105 |
d.first = 1; |
106 |
} |
107 |
if (timer == 120) |
108 |
{ |
109 |
d = instance_create(xx - 200, yy - 100, obj_queen_explodinghead_intro); |
110 |
d.ultimate = 1; |
111 |
d.first = 1; |
112 |
} |
113 |
if (timer == 136) |
114 |
{ |
115 |
d = instance_create(xx + 200, yy, obj_queen_explodinghead_intro); |
116 |
d.ultimate = 1; |
117 |
d.first = 1; |
118 |
} |
119 |
if (timer == 152) |
120 |
{ |
121 |
d = instance_create(xx - 190, yy + 100, obj_queen_explodinghead_intro); |
122 |
d.ultimate = 1; |
123 |
d.first = 1; |
124 |
} |
125 |
} |
126 |
if (global.turntimer < 14) |
127 |
{ |
128 |
with (obj_queen_poppup_error) |
129 |
image_alpha -= 0.1; |
130 |
image_alpha -= 0.1; |
131 |
} |
132 |
if (global.turntimer < 11) |
133 |
{ |
134 |
with (obj_queen_poppup_error) |
135 |
image_alpha -= 0.1; |
136 |
image_alpha -= 0.1; |
137 |
with (obj_heroparent) |
138 |
image_alpha += 0.1; |
139 |
with (obj_queen_enemy) |
140 |
image_alpha += 0.1; |
141 |
} |