1 |
fx = instance_create(x, y, obj_pipis_destroy_fx); |
2 |
fx.image_xscale = 1.5; |
3 |
fx.image_yscale = 1.5; |
4 |
if (obj_spamton_neo_enemy.difficulty != 4) |
5 |
{ |
6 |
if (type == 2) |
7 |
{ |
8 |
for (i = 0; i < 10; i++) |
9 |
{ |
10 |
hed = instance_create(x, y, obj_pipis_bullet_cone); |
11 |
hed.direction = (point_direction(x, y, obj_heart.x + 10, obj_heart.y + 10) - 25) + random(50); |
12 |
hed.speed = 15 + random(5); |
13 |
hed.depth = depth - 100; |
14 |
hed.sprite_index = spr_sneo_crew; |
15 |
hed.image_xscale = 0.5; |
16 |
hed.image_yscale = 0.5; |
17 |
hed.target = target; |
18 |
hed.damage = damage; |
19 |
hed.grazed = 0; |
20 |
hed.element = 6; |
21 |
} |
22 |
} |
23 |
else if (type == 3) |
24 |
{ |
25 |
for (i = 0; i < 10; i++) |
26 |
{ |
27 |
hed = instance_create(x, y, obj_pipis_bullet_cone); |
28 |
hed.direction = (point_direction(x, y, obj_heart.x + 10, obj_heart.y + 10) - 20) + random(40); |
29 |
hed.speed = 15 + random(5); |
30 |
hed.depth = depth - 100; |
31 |
hed.target = target; |
32 |
hed.damage = damage; |
33 |
hed.grazed = 0; |
34 |
hed.element = 6; |
35 |
} |
36 |
} |
37 |
else |
38 |
{ |
39 |
center = instance_create(x, y, obj_pipis_center); |
40 |
center.target = target; |
41 |
center.damage = damage; |
42 |
} |
43 |
} |
44 |
if (obj_spamton_neo_enemy.difficulty == 4) |
45 |
{ |
46 |
for (i = 0; i < 15; i++) |
47 |
{ |
48 |
radialshot = instance_create(x, y, obj_sneo_heatattack_bullet); |
49 |
with (radialshot) |
50 |
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;
} (); |
51 |
radialshot.sprite_index = spr_diamondbullet; |
52 |
radialshot.dir = ((i * 24) + random(14)) - 7; |
53 |
radialshot.active = 1; |
54 |
radialshot.depth = depth - 100; |
55 |
radialshot.target = target; |
56 |
radialshot.damage = damage; |
57 |
radialshot.grazed = 0; |
58 |
radialshot.element = 6; |
59 |
} |
60 |
radialshot = instance_create(x, y, obj_sneo_heatattack_bullet); |
61 |
with (radialshot) |
62 |
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;
} (); |
63 |
radialshot.sprite_index = spr_diamondbullet; |
64 |
radialshot.dir = point_direction(x, y, obj_heart.x + 10, obj_heart.y + 10); |
65 |
radialshot.active = 1; |
66 |
radialshot.depth = depth - 100; |
67 |
radialshot.target = target; |
68 |
radialshot.damage = damage; |
69 |
radialshot.grazed = 0; |
70 |
radialshot.element = 6; |
71 |
radialshot = instance_create(x, y, obj_sneo_heatattack_bullet); |
72 |
with (radialshot) |
73 |
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;
} (); |
74 |
radialshot.sprite_index = spr_diamondbullet; |
75 |
radialshot.dir = point_direction(x, y, obj_heart.x + 10, (obj_heart.y + 10) - 40); |
76 |
radialshot.active = 1; |
77 |
radialshot.depth = depth - 100; |
78 |
radialshot.target = target; |
79 |
radialshot.damage = damage; |
80 |
radialshot.grazed = 0; |
81 |
radialshot.element = 6; |
82 |
radialshot = instance_create(x, y, obj_sneo_heatattack_bullet); |
83 |
with (radialshot) |
84 |
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;
} (); |
85 |
radialshot.sprite_index = spr_diamondbullet; |
86 |
radialshot.dir = point_direction(x, y, obj_heart.x + 10, obj_heart.y + 10 + 40); |
87 |
radialshot.active = 1; |
88 |
radialshot.depth = depth - 100; |
89 |
radialshot.target = target; |
90 |
radialshot.damage = damage; |
91 |
radialshot.grazed = 0; |
92 |
radialshot.element = 6; |
93 |
} |
94 |
repeat (3) |
95 |
{ |
96 |
fx = instance_create(x, y, obj_pipis_egg_bullet_piece); |
97 |
fx.image_index = random(3); |
98 |
fx.image_xscale = 2; |
99 |
fx.image_yscale = 2; |
100 |
fx.direction = 45 + random(90); |
101 |
} |
102 |
instance_destroy(); |