|
1
|
if (drawwhite == 1)
|
|
2
|
{
|
|
3
|
draw_set_color(c_white);
|
|
4
|
draw_rectangle(-10, -10, 999, 999, false);
|
|
5
|
}
|
|
6
|
if (split == 0)
|
|
7
|
draw_self();
|
|
8
|
if (split == 1)
|
|
9
|
{
|
|
10
|
splity += (0.6 - splitfriction);
|
|
11
|
if (splitfriction < 0.5)
|
|
12
|
splitfriction += 0.01;
|
|
13
|
draw_sprite_ext(sprite_index, 16, x + splity, y - splity, image_xscale, image_yscale, 0, c_white, image_alpha);
|
|
14
|
draw_sprite_ext(sprite_index, 15, x - splity, y + splity, image_xscale, image_yscale, 0, c_white, image_alpha);
|
|
15
|
draw_sprite_ext(headsprite, image_index, x + splity, y - splity, image_xscale, image_yscale, 0, image_blend, image_alpha);
|
|
16
|
draw_set_blend_mode(bm_normal);
|
|
17
|
draw_sprite_ext_glow(headsprite, image_index, x + splity, y - splity, image_xscale, image_yscale, 0, c_white, image_alpha, c_white);
|
|
18
|
draw_set_blend_mode(bm_add);
|
|
19
|
draw_sprite_ext_glow(headsprite, image_index, x + splity, y - splity, image_xscale, image_yscale, 0, headcolor, image_alpha, c_white);
|
|
20
|
draw_set_blend_mode(bm_normal);
|
|
21
|
}
|