|
1
|
event_inherited();
|
|
2
|
if (state == 0 && collision_circle(x, y, 3, obj_growtangle, false, true) && !collision_circle(x, y, 7, obj_growtangle, true, true))
|
|
3
|
{
|
|
4
|
state = 1;
|
|
5
|
}
|
|
6
|
else if (state == 1 && collision_circle(x, y, 7, obj_growtangle, true, true))
|
|
7
|
{
|
|
8
|
with (obj_lerpvar)
|
|
9
|
{
|
|
10
|
if (target == other.id)
|
|
11
|
instance_destroy();
|
|
12
|
}
|
|
13
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("speed", speed, 0, 32);
|
|
14
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("spinspeed", spinspeed, 0, 32);
|
|
15
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_alpha", 1.25, 0, 40);
|
|
16
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
var _doom = instance_create_depth(0, 0, 0, obj_doom);
with (_doom)
{
alarm[0]
target = arg0;
}
return _doom;
} (id, 40);
|
|
17
|
active = false;
|
|
18
|
state = 2;
|
|
19
|
}
|