|
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
|
fauxspeed = 10;
|
|
3
|
direction = 180;
|
|
4
|
scr_getboxboundsscr_getboxbounds
function scr_getboxbounds()
{
if (instance_exists(obj_growtangle))
{
minx = obj_growtangle.x - (obj_growtangle.sprite_width / 2);
maxx = obj_growtangle.x + (obj_growtangle.sprite_width / 2);
miny = obj_growtangle.y - (obj_growtangle.sprite_height / 2);
maxy = obj_growtangle.y + (obj_growtangle.sprite_height / 2);
}
else
{
minx = 999;
maxx = 999;
miny = 999;
maxy = 999;
}
} ();
|
|
5
|
minx += 8;
|
|
6
|
maxx -= 8;
|
|
7
|
miny += 8;
|
|
8
|
maxy -= 8;
|
|
9
|
destroyonhit = 0;
|
|
10
|
traillength = 25;
|
|
11
|
init = 0;
|
|
12
|
for (i = 0; i < 3; i++)
|
|
13
|
{
|
|
14
|
bouncepoint_x[i] = x;
|
|
15
|
bouncepoint_y[i] = y;
|
|
16
|
}
|
|
17
|
hitbox[0] = self;
|
|
18
|
sprite_index = spr_thrash_laser_hitbox;
|
|
19
|
image_yscale = 0.25;
|
|
20
|
for (i = 1; i < 3; i++)
|
|
21
|
{
|
|
22
|
hitbox[i] = instance_create(x, y, obj_regularbullet);
|
|
23
|
hitbox[i].destroyonhit = 0;
|
|
24
|
hitbox[i].sprite_index = spr_thrash_laser_hitbox;
|
|
25
|
hitbox[i].image_yscale = 0.25;
|
|
26
|
hitbox[i].visible = 0;
|
|
27
|
}
|
|
28
|
bouncecount = 0;
|
|
29
|
bouncecap = 4;
|