|
1
|
scr_bullet_initscr_bullet_init
function scr_bullet_init()
{
grazed = 0;
grazetimer = 0;
destroyonhit = 1;
target = 0;
inv = 60;
damage = 10;
element = 0;
grazepoints = 1;
timepoints = 1;
active = 1;
updateimageangle = 0;
} ();
|
|
2
|
element = 5;
|
|
3
|
destroyonhit = false;
|
|
4
|
active = true;
|
|
5
|
timer = 0;
|
|
6
|
laugh_timer = 1;
|
|
7
|
state = 0;
|
|
8
|
mydir = 0;
|
|
9
|
size = 0;
|
|
10
|
grazepoints = 4;
|
|
11
|
mask_index = -1;
|
|
12
|
image_xscale = 1;
|
|
13
|
image_yscale = 1;
|
|
14
|
image_alpha = 0;
|
|
15
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
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_lerpvar_respect()
{
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]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0, 1, 12, 2, "in");
|
|
16
|
sway = 0;
|
|
17
|
dosway = 1;
|
|
18
|
max_trail = 14;
|
|
19
|
bullet1 = instance_create_depth(x, y, depth + 1, obj_regularbullet);
|
|
20
|
with (bullet1)
|
|
21
|
{
|
|
22
|
grazepoints = 2;
|
|
23
|
damage = 80;
|
|
24
|
sprite_index = spr_ball_small;
|
|
25
|
image_alpha = 0;
|
|
26
|
destroyonhit = false;
|
|
27
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
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_lerpvar_respect()
{
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]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", -2, 1, 12, 2, "in");
|
|
28
|
}
|
|
29
|
bullet2 = instance_create_depth(x, y, depth + 1, obj_regularbullet);
|
|
30
|
with (bullet2)
|
|
31
|
{
|
|
32
|
grazepoints = 2;
|
|
33
|
damage = 80;
|
|
34
|
sprite_index = spr_ball_small;
|
|
35
|
image_alpha = 0;
|
|
36
|
destroyonhit = false;
|
|
37
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
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_lerpvar_respect()
{
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]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", -4, 1, 12, 2, "in");
|
|
38
|
}
|
|
39
|
for (var i = 0; i <= max_trail; i++)
|
|
40
|
{
|
|
41
|
xx[i] = x;
|
|
42
|
yy[i] = y;
|
|
43
|
}
|
|
44
|
rimshot_timer = -1;
|