|
1
|
event_inherited();
|
|
2
|
if (speed > 0.25)
|
|
3
|
speed = scr_approach_curvescr_approach_curve
function scr_approach_curve(arg0, arg1, arg2, arg3 = 0.1)
{
return scr_approach(arg0, arg1, max(arg3, abs(arg1 - arg0) / arg2));
} (speed, 0, 12 / sqrt(speed));
|
|
4
|
if (speed < 0.75)
|
|
5
|
{
|
|
6
|
timer++;
|
|
7
|
if (timer == 10)
|
|
8
|
{
|
|
9
|
sound_play(snd_wing);
|
|
10
|
var dir = scr_at_playerscr_at_player
function scr_at_player(arg0 = x, arg1 = y)
{
return point_direction(arg0, arg1, obj_heart.x + 10, obj_heart.y + 10);
} ();
|
|
11
|
var step = 30;
|
|
12
|
var off = -step;
|
|
13
|
while (off <= step)
|
|
14
|
{
|
|
15
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_bullet_shuriken, dir + off + randomized, shotspd - (((off != 0) * shotspd) / 5), spr_shuriken_small, false, true, depth - 1))
|
|
16
|
{
|
|
17
|
spin = 1;
|
|
18
|
spinspeed = -25;
|
|
19
|
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, speed / 1.5, 36);
|
|
20
|
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, spinspeed / 1.5, 36);
|
|
21
|
framenum = global.turntimer;
|
|
22
|
damage = 92;
|
|
23
|
target = 4;
|
|
24
|
}
|
|
25
|
off += step;
|
|
26
|
}
|
|
27
|
}
|
|
28
|
if (timer == 10)
|
|
29
|
{
|
|
30
|
repeat (11)
|
|
31
|
{
|
|
32
|
with (instance_create((x - 15) + random(30), (y - 15) + random(30), obj_regularbullet))
|
|
33
|
{
|
|
34
|
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.5, 0, 25 + irandom(10));
|
|
35
|
speed = 0.5 + random(1);
|
|
36
|
direction = other.image_angle + 80 + random(20);
|
|
37
|
gravity_direction = other.image_angle;
|
|
38
|
gravity = 0.1;
|
|
39
|
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);
|
|
40
|
sprite_index = spr_cakesmoke;
|
|
41
|
active = false;
|
|
42
|
damage = 92;
|
|
43
|
target = 4;
|
|
44
|
}
|
|
45
|
}
|
|
46
|
instance_destroy();
|
|
47
|
}
|
|
48
|
}
|