1 |
if (birthday >= infinity) |
2 |
show_error("BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW BIRTHDAY OVERFLOW ", false); |
3 |
if (birthday >= infinity) |
4 |
birthday = 0; |
5 |
if (bufferstate == 0 && scr_queen_buffercheck()) |
6 |
{ |
7 |
image_blend = c_gray; |
8 |
bufferstate = 1; |
9 |
} |
10 |
else if (bufferstate == 1 && !scr_queen_buffercheck()) |
11 |
{ |
12 |
image_blend = c_white; |
13 |
bufferstate = 2; |
14 |
} |
15 |
if (bufferstate == 1) |
16 |
exit; |
17 |
if (loading > 0) |
18 |
exit; |
19 |
if (timer < 162) |
20 |
{ |
21 |
scr_orbitaroundpoint_dx(xstart, ystart, min(timer * 1.9, 340), (timer * 10 * flip) + direction); |
22 |
} |
23 |
else if (timer >= 162 && impact == 0) |
24 |
{ |
25 |
timer = 162; |
26 |
scr_orbitaroundpoint_dx(xstart, ystart, min(timer * 1.9, 340), (timer * 10 * flip) + direction); |
27 |
d = instance_exists(obj_shake) ? 196 : instance_create(0, 0, obj_shake); |
28 |
d.shakex = ceil(2); |
29 |
d.shakey = ceil(2); |
30 |
snd_play(snd_screenshake); |
31 |
impact = 1; |
32 |
var explosion = instance_create(x, y, obj_animation_dx); |
33 |
explosion.sprite_index = spr_realisticexplosion; |
34 |
explosion.image_index = 3; |
35 |
explosion.depth = depth - 4; |
36 |
birthday = infinity; |
37 |
} |
38 |
timer++; |
39 |
bufferstate = 0; |