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 |
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) |
19 |
else if ((state >= 2 && state < 10) || (state == 11 && formtimer >= 30 && formtimer <= 70)) |
20 |
{ |
21 |
var _shake = (state == 3 ? 2 : 1) |
22 |
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)))))) |
23 |
} |
24 |
else |
25 |
draw_sprite_ext(sprite_index, image_index, (x + headoffset_x), (y + headoffset_y), image_xscale, image_yscale, image_angle, image_blend, image_alpha) |
26 |
if ((destroyable && state == 0) || (state == 1 && formtimer < 30)) |
27 |
{ |
28 |
if (hurtalpha > 0) |
29 |
hurtalpha -= 0.1 |
30 |
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, 0, c_yellow, hurtalpha) |
31 |
} |
32 |
if (intro != 0) |
33 |
{ |
34 |
image_index = 4 |
35 |
introtimer++ |
36 |
image_blend = merge_color(c_black, c_white, clamp(((introtimer / 30 - 0.5) / 1.5), 0, 1)) |
37 |
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) |
38 |
if (introtimer >= 68) |
39 |
{ |
40 |
intro = 0 |
41 |
image_index = 4 |
42 |
image_alpha = 1 |
43 |
image_blend = c_white |
44 |
} |
45 |
} |