1 |
dtimer += 1; |
2 |
if (type == 0) |
3 |
{ |
4 |
if (dtimer == 15 || dtimer == 19 || dtimer == 23) |
5 |
{ |
6 |
move_towards_point(obj_heart_ch1.x + 8, obj_heart_ch1.y + 8, 0.1); |
7 |
bul = instance_create_ch1(x, y, obj_regularbullet_ch1); |
8 |
if (instance_exists(bul)) |
9 |
{ |
10 |
bul.sprite_index = spr_clubsball_b_ch1; |
11 |
bul.direction = direction; |
12 |
bul.speed = 4; |
13 |
bul.image_angle = direction; |
14 |
bul.damage = damage; |
15 |
bul.target = target; |
16 |
bul.grazepoints = 2; |
17 |
bul.timepoints = 1; |
18 |
} |
19 |
bul = instance_create_ch1(x, y, obj_regularbullet_ch1); |
20 |
if (instance_exists(bul)) |
21 |
{ |
22 |
bul.sprite_index = spr_clubsball_c_ch1; |
23 |
bul.direction = direction - 17; |
24 |
bul.speed = 4; |
25 |
bul.image_angle = direction; |
26 |
bul.damage = damage; |
27 |
bul.target = target; |
28 |
bul.grazepoints = 2; |
29 |
bul.timepoints = 1; |
30 |
} |
31 |
bul = instance_create_ch1(x, y, obj_regularbullet_ch1); |
32 |
if (instance_exists(bul)) |
33 |
{ |
34 |
bul.sprite_index = spr_clubsball_a_ch1; |
35 |
bul.direction = direction + 17; |
36 |
bul.speed = 4; |
37 |
bul.image_angle = direction; |
38 |
bul.damage = damage; |
39 |
bul.target = target; |
40 |
bul.grazepoints = 2; |
41 |
bul.timepoints = 1; |
42 |
} |
43 |
} |
44 |
if (dtimer == 25) |
45 |
{ |
46 |
a = instance_create_ch1(x, y, obj_afterimage_ch1); |
47 |
a.sprite_index = sprite_index; |
48 |
a.image_angle = image_angle; |
49 |
instance_destroy(); |
50 |
} |
51 |
} |
52 |
if (type == 2) |
53 |
{ |
54 |
if (dtimer == 20 || dtimer == 22 || dtimer == 24) |
55 |
{ |
56 |
move_towards_point(obj_heart_ch1.x + 8, obj_heart_ch1.y + 8, 0.1); |
57 |
bul = instance_create_ch1(x, y, obj_regularbullet_ch1); |
58 |
if (instance_exists(bul)) |
59 |
{ |
60 |
bul.sprite_index = spr_clubsball_b_ch1; |
61 |
bul.direction = (direction - 2) + initangle; |
62 |
bul.speed = 2; |
63 |
if (type == 2) |
64 |
bul.speed = 5; |
65 |
bul.image_angle = direction; |
66 |
scr_bullet_inherit_ch1scr_bullet_inherit_ch1function scr_bullet_inherit_ch1(arg0)
{
if (instance_exists(arg0))
{
arg0.damage = damage;
arg0.grazepoints = grazepoints;
arg0.timepoints = timepoints;
arg0.inv = inv;
arg0.target = target;
arg0.grazed = 0;
arg0.grazetimer = 0;
}
} (bul); |
67 |
} |
68 |
bul = instance_create_ch1(x, y, obj_regularbullet_ch1); |
69 |
if (instance_exists(bul)) |
70 |
{ |
71 |
bul.sprite_index = spr_clubsball_c_ch1; |
72 |
bul.direction = (direction - 19 - 2) + initangle; |
73 |
bul.speed = 2; |
74 |
if (type == 2) |
75 |
bul.speed = 5; |
76 |
bul.image_angle = direction; |
77 |
scr_bullet_inherit_ch1scr_bullet_inherit_ch1function scr_bullet_inherit_ch1(arg0)
{
if (instance_exists(arg0))
{
arg0.damage = damage;
arg0.grazepoints = grazepoints;
arg0.timepoints = timepoints;
arg0.inv = inv;
arg0.target = target;
arg0.grazed = 0;
arg0.grazetimer = 0;
}
} (bul); |
78 |
} |
79 |
bul = instance_create_ch1(x, y, obj_regularbullet_ch1); |
80 |
if (instance_exists(bul)) |
81 |
{ |
82 |
bul.sprite_index = spr_clubsball_a_ch1; |
83 |
bul.direction = ((direction + 19) - 2) + initangle; |
84 |
bul.speed = 2; |
85 |
if (type == 2) |
86 |
bul.speed = 5; |
87 |
bul.image_angle = direction; |
88 |
scr_bullet_inherit_ch1scr_bullet_inherit_ch1function scr_bullet_inherit_ch1(arg0)
{
if (instance_exists(arg0))
{
arg0.damage = damage;
arg0.grazepoints = grazepoints;
arg0.timepoints = timepoints;
arg0.inv = inv;
arg0.target = target;
arg0.grazed = 0;
arg0.grazetimer = 0;
}
} (bul); |
89 |
} |
90 |
initangle += 2; |
91 |
} |
92 |
if (dtimer == 26) |
93 |
{ |
94 |
a = instance_create_ch1(x, y, obj_afterimage_ch1); |
95 |
a.sprite_index = sprite_index; |
96 |
a.image_angle = image_angle; |
97 |
instance_destroy(); |
98 |
} |
99 |
} |