|
1
|
var xshake = 0;
|
|
2
|
var yshake = 0;
|
|
3
|
if (sprite_index == spr_tenna_desperate)
|
|
4
|
{
|
|
5
|
xshake = choose(-1, 0, 1);
|
|
6
|
yshake = choose(-1, 0, 1);
|
|
7
|
}
|
|
8
|
if (doshadow)
|
|
9
|
{
|
|
10
|
draw_set_alpha(0.5);
|
|
11
|
draw_set_color(c_black);
|
|
12
|
var shdoff = 0;
|
|
13
|
if (sprite_index == spr_tenna_desperate)
|
|
14
|
shdoff = 10;
|
|
15
|
draw_sprite_ext(spr_susiezilla_shadow, 0, x + xshake, ((y + 15) - shdoff) + yshake, 3 + (shdoff * 0.05), 3, 0, image_blend, 0.25);
|
|
16
|
draw_set_color(c_white);
|
|
17
|
draw_set_alpha(1);
|
|
18
|
}
|
|
19
|
if ((state != states.dead && (alarm[1] % 4) < 2) || (state == states.dead && (state_timer % 4) < 2))
|
|
20
|
{
|
|
21
|
pal_swap_set(spr_tenna_palette, 1, false);
|
|
22
|
draw_sprite_ext(sprite_index, image_index, x + (xoff * polarity) + xshake, y + yoff + z + yshake, xscale, yscale, image_angle, image_blend, image_alpha);
|
|
23
|
pal_swap_reset();
|
|
24
|
if (flash > 0)
|
|
25
|
{
|
|
26
|
d3d_set_fog(true, c_yellow, 0, 1);
|
|
27
|
draw_sprite_ext(sprite_index, image_index, x + (xoff * polarity) + xshake, y + yoff + z + yshake, xscale, yscale, image_angle, image_blend, flash / 10);
|
|
28
|
d3d_set_fog(false, c_black, 0, 0);
|
|
29
|
}
|
|
30
|
if (afterimages)
|
|
31
|
afterimages_intensity = scr_approachscr_approach
function scr_approach(arg0, arg1, arg2)
{
if (arg0 < arg1)
{
arg0 += arg2;
if (arg0 > arg1)
return arg1;
}
else
{
arg0 -= arg2;
if (arg0 < arg1)
return arg1;
}
return arg0;
} (afterimages_intensity, 1, 0.25);
|
|
32
|
else
|
|
33
|
afterimages_intensity = scr_approachscr_approach
function scr_approach(arg0, arg1, arg2)
{
if (arg0 < arg1)
{
arg0 += arg2;
if (arg0 > arg1)
return arg1;
}
else
{
arg0 -= arg2;
if (arg0 < arg1)
return arg1;
}
return arg0;
} (afterimages_intensity, 0, 0.1);
|
|
34
|
d3d_set_fog(true, c_white, 0, 0);
|
|
35
|
draw_sprite_ext(sprite_index, image_index, x + (xoff * polarity), y + yoff + z, xscale, yscale, image_angle, image_blend, afterimages_intensity);
|
|
36
|
d3d_set_fog(false, c_white, 0, 0);
|
|
37
|
}
|
|
38
|
with (obj_afterimage_grow)
|
|
39
|
{
|
|
40
|
if (sprite_index == spr_ground_shockwave)
|
|
41
|
{
|
|
42
|
if (image_yscale <= 0.1)
|
|
43
|
instance_destroy();
|
|
44
|
else
|
|
45
|
draw_self();
|
|
46
|
image_yscale *= 0.75;
|
|
47
|
image_xscale = scr_approachscr_approach
function scr_approach(arg0, arg1, arg2)
{
if (arg0 < arg1)
{
arg0 += arg2;
if (arg0 > arg1)
return arg1;
}
else
{
arg0 -= arg2;
if (arg0 < arg1)
return arg1;
}
return arg0;
} (image_xscale, 0, 0.3);
|
|
48
|
}
|
|
49
|
}
|