|
1
|
flash = 0;
|
|
2
|
siner += 1;
|
|
3
|
animsiner++;
|
|
4
|
fsiner += 1;
|
|
5
|
eyetimer++;
|
|
6
|
if (eyetimer == 30)
|
|
7
|
{
|
|
8
|
var eyeangle = random(360);
|
|
9
|
targetEyeX = lengthdir_x(6, eyeangle);
|
|
10
|
targetEyeY = lengthdir_y(6, eyeangle);
|
|
11
|
}
|
|
12
|
if (eyetimer == 90)
|
|
13
|
{
|
|
14
|
eyetimer = (0 + irandom(8)) - irandom(8);
|
|
15
|
targetEyeX = 0;
|
|
16
|
targetEyeY = 0;
|
|
17
|
}
|
|
18
|
eyex = lerp(eyex, scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (targetEyeX), 0.2);
|
|
19
|
eyey = lerp(eyey, scr_evenscr_even
function scr_even(arg0)
{
return round(arg0 / 2) * 2;
} (targetEyeY), 0.2);
|
|
20
|
wingSpriteL = 5030;
|
|
21
|
wingSpriteR = 5351;
|
|
22
|
draw_sprite_ext(spr_halo_bat_sword, 0, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
23
|
draw_sprite_ext(spr_halo_bat_topBit, 0, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
24
|
draw_sprite_ext(wingSpriteL, siner * 0.25, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
25
|
draw_sprite_ext(wingSpriteR, siner * 0.25, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
26
|
draw_sprite_ext(spr_halo_bat_black, 0, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
27
|
draw_sprite_ext(spr_halo_bat_eyeWhite, 0, x + round(eyex * 0.2), y + round(eyey * 0.2), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
28
|
draw_sprite_ext(spr_halo_bat_eyePupil, 0, x + round(eyex), y + round(eyey), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
29
|
draw_sprite_ext(spr_halo_bat_halo, 0, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|