1 |
scr_bullet_initscr_bullet_initfunction 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 |
followindex = 0; |
3 |
if (instance_exists(obj_mauswheel_enemy)) |
4 |
followindexmax = 25; |
5 |
else |
6 |
followindexmax = 33; |
7 |
for (i = 0; i < (followindexmax + 1); i++) |
8 |
{ |
9 |
heartposx[i] = obj_heart.x; |
10 |
heartposy[i] = obj_heart.y; |
11 |
} |
12 |
damage = 6; |
13 |
timer = 0; |
14 |
destroyonhit = 0; |
15 |
trail = ds_queue_create(); |
16 |
maxx = obj_growtangle.x + (obj_growtangle.sprite_width / 1.3); |
17 |
maxy = obj_growtangle.y + (obj_growtangle.sprite_height / 1.3); |
18 |
depth -= 3; |
19 |
textflash = 0; |
20 |
if (instance_exists(obj_mauswheel_enemy)) |
21 |
{ |
22 |
damage = global.monsterat[obj_mauswheel_enemy.myself] * 5; |
23 |
grazepoints = 3; |
24 |
} |