1 |
if (image_index == 5 && hidemouthback == 0) |
2 |
{ |
3 |
with (obj_sneo_final_forme_mouth_back) |
4 |
{ |
5 |
image_index = 7; |
6 |
x = obj_sneo_final_forme.x + obj_sneo_final_forme.headoffset_x; |
7 |
y = obj_sneo_final_forme.y + obj_sneo_final_forme.headoffset_y; |
8 |
visible = true; |
9 |
} |
10 |
} |
11 |
else |
12 |
{ |
13 |
with (obj_sneo_final_forme_mouth_back) |
14 |
visible = false; |
15 |
} |
16 |
draw_sprite_ext(sprite_index, 3, x, ystart - abs(sin(steptimer + ((state < 2) ? 0.15 : 0.05)) * 40), 1, 1, 0, image_blend, 1); |
17 |
if (image_angle != 0) |
18 |
{ |
19 |
draw_sprite_ext(spr_sneo_final_forme_head_rotate_origin, image_index, x + 138 + headoffset_x, y + 135 + headoffset_y, image_xscale, image_yscale, image_angle, c_white, 1); |
20 |
} |
21 |
else if ((state >= 2 && state < 10) || (state == 11 && formtimer >= 30 && formtimer <= 70)) |
22 |
{ |
23 |
var _shake = (state == 3) ? 2 : 1; |
24 |
draw_sprite(sprite_index, image_index, x + random_range(-_shake, _shake), ystart - abs((sin(steptimer + ((state < 2) ? 0.15 : 0.05)) * 40) + random_range(-_shake, _shake))); |
25 |
} |
26 |
else |
27 |
{ |
28 |
draw_sprite_ext(sprite_index, image_index, x + headoffset_x, y + headoffset_y, image_xscale, image_yscale, image_angle, image_blend, image_alpha); |
29 |
} |
30 |
if ((destroyable && state == 0) || (state == 1 && formtimer < 30)) |
31 |
{ |
32 |
if (hurtalpha > 0) |
33 |
hurtalpha -= 0.1; |
34 |
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, 0, c_yellow, hurtalpha); |
35 |
} |
36 |
if (intro != 0) |
37 |
{ |
38 |
image_index = 4; |
39 |
introtimer++; |
40 |
image_blend = merge_color(c_black, c_white, clamp(((introtimer / 30) - 0.5) / 1.5, 0, 1)); |
41 |
draw_sprite_ext(sprite_index, 2, x, y, 1, 1, 0, (intro == 1) ? merge_color(c_black, c_white, clamp(introtimer / 30, 0, 1)) : c_white, 1); |
42 |
if (introtimer >= 68) |
43 |
{ |
44 |
intro = 0; |
45 |
image_index = 4; |
46 |
image_alpha = 1; |
47 |
image_blend = c_white; |
48 |
} |
49 |
} |