|
1
|
var __step = 0;
|
|
2
|
var __index = image_index;
|
|
3
|
if (__step > 1)
|
|
4
|
__index = scr_round_to_multiplescr_round_to_multiple
function round_to_multiple(arg0, arg1)
{
if (arg1 == 0)
return arg0;
return round(arg0 / arg1) * arg1;
}
function ceil_to_multiple(arg0, arg1)
{
if (arg1 == 0)
return arg0;
return ceil(arg0 / arg1) * arg1;
}
function floor_to_multiple(arg0, arg1)
{
if (arg1 == 0)
return arg0;
return floor(arg0 / arg1) * arg1;
} (__index, 1 / __step);
|
|
5
|
if ((__index % 1) != 0)
|
|
6
|
{
|
|
7
|
var __alpha = 1 - ((__index % 1) * image_alpha);
|
|
8
|
draw_sprite_ext(sprite_index, floor(image_index), x, y, image_xscale, image_yscale, image_angle, image_blend, __alpha);
|
|
9
|
var __alphab = 1 - __alpha;
|
|
10
|
draw_sprite_ext(sprite_index, ceil(image_index), x, y, image_xscale, image_yscale, image_angle, image_blend, __alphab);
|
|
11
|
}
|
|
12
|
else
|
|
13
|
{
|
|
14
|
draw_self();
|
|
15
|
}
|
|
16
|
draw_self_ext(3317, 1);
|
|
17
|
timer++;
|
|
18
|
if (timer >= 120)
|
|
19
|
timer = 0;
|