1 |
if (loading <= 0 && image_blend != c_white) |
2 |
image_blend = merge_color(#31D989, c_white, timer / 10); |
3 |
image_xscale = 0.75; |
4 |
image_yscale = 0.75; |
5 |
if (loading > 0) |
6 |
{ |
7 |
loading--; |
8 |
if (loading == 0) |
9 |
image_index = 0; |
10 |
else if ((loading % 3) == 0) |
11 |
image_index++; |
12 |
draw_self(); |
13 |
exit; |
14 |
} |
15 |
if (broken == 0) |
16 |
{ |
17 |
for (i = 0; i < 4; i++) |
18 |
{ |
19 |
xx = lerp(xstart, x, i / 4); |
20 |
yy = lerp(ystart, y, i / 4); |
21 |
var _alpha = clamp(0, 1, scr_inverselerp(45, 200, point_distance(xx, yy, obj_heart.x + 8, obj_heart.y + 8))); |
22 |
draw_sprite_ext(sprite_index, 1, xx, yy, 1, 1, 0, #31D989, _alpha); |
23 |
} |
24 |
} |
25 |
draw_self(); |
26 |
if (bufferstate == 0) |
27 |
{ |
28 |
var _af = scr_custom_afterimagescr_custom_afterimagefunction scr_custom_afterimage(arg0)
{
afterimage = instance_create(x, y, arg0);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth + 1;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} (obj_buffer_afterimage); |
29 |
_af.image_alpha = 0.5; |
30 |
_af.image_index = 5; |
31 |
_af.image_blend = #31D989; |
32 |
} |
33 |
if (bufferstate == 1) |
34 |
draw_sprite(spr_queen_buffering, obj_queen_buffercontroller.bufferbar % 8, x, y); |