|
1
|
with (creator)
|
|
2
|
{
|
|
3
|
var _specialmode = false;
|
|
4
|
if (other.rainbow_mode)
|
|
5
|
{
|
|
6
|
_specialmode = true;
|
|
7
|
var _img = scr_afterimage_fog(undefined, other.rainbowarray[other.rainbow_pos], 14);
|
|
8
|
_img.depth = depth + 1;
|
|
9
|
}
|
|
10
|
if (other.fog != -1)
|
|
11
|
{
|
|
12
|
_specialmode = true;
|
|
13
|
var _img = scr_afterimage_fog(undefined, other.fog, 14);
|
|
14
|
_img.depth = depth + 1;
|
|
15
|
}
|
|
16
|
if (!_specialmode)
|
|
17
|
var _img = scr_afterimagescr_afterimage
function scr_afterimage()
{
afterimage = instance_create(x, y, obj_afterimage);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} ();
|
|
18
|
}
|
|
19
|
if (rainbow_mode)
|
|
20
|
rainbow_pos++;
|
|
21
|
if (rainbow_pos >= array_length(rainbowarray))
|
|
22
|
rainbow_pos = 0;
|
|
23
|
alarm[0] = period; gml_Object_obj_afterimager_Alarm_0.gml
with (creator)
{
var _specialmode = false;
if (other.rainbow_mode)
{
_specialmode = true;
var _img = scr_afterimage_fog(undefined, other.rainbowarray[other.rainbow_pos], 14);
_img.depth = depth + 1;
}
if (other.fog != -1)
{
_specialmode = true;
var _img = scr_afterimage_fog(undefined, other.fog, 14);
_img.depth = depth + 1;
}
if (!_specialmode)
var _img = scr_afterimage();
}
if (rainbow_mode)
rainbow_pos++;
if (rainbow_pos >= array_length(rainbowarray))
rainbow_pos = 0;
alarm[0] = period;
remaining--;
if (remaining <= 0)
instance_destroy();
|
|
24
|
remaining--;
|
|
25
|
if (remaining <= 0)
|
|
26
|
instance_destroy();
|