1 |
if (keyboard_check(vk_enter) && active == 1 && scr_debug()) |
2 |
{ |
3 |
attackno += 1; |
4 |
active = 0; |
5 |
if (attackno <= 11) |
6 |
attack = attackno; |
7 |
else |
8 |
attack = choose(7, 8, 9, 10, 11); |
9 |
if (attack == 1) |
10 |
{ |
11 |
box = instance_create(xx + 340, yy + 170, obj_growtangle); |
12 |
scr_moveheart(); |
13 |
dd = instance_create(0, 0, obj_dbulletcontroller); |
14 |
dd.type = 21; |
15 |
timeruse = 1; |
16 |
faketimermax = 190; |
17 |
faketimer = 0; |
18 |
} |
19 |
if (attack == 2) |
20 |
{ |
21 |
visible = 0; |
22 |
chainking = instance_create(x, y, obj_chainking); |
23 |
chainking.type = 1; |
24 |
chainking.subtype = 0; |
25 |
box = instance_create(xx + 200, yy + 175, obj_nonsolid_growtangle); |
26 |
box.sprite_index = spr_battlebg_wavechain; |
27 |
scr_moveheart(); |
28 |
} |
29 |
if (attack == 3) |
30 |
{ |
31 |
box = instance_create(xx + 340, yy + 170, obj_growtangle); |
32 |
scr_moveheart(); |
33 |
dd = instance_create(0, 0, obj_dbulletcontroller); |
34 |
dd.type = 34; |
35 |
timeruse = 1; |
36 |
faketimermax = 200; |
37 |
faketimer = 0; |
38 |
} |
39 |
if (attack == 4) |
40 |
{ |
41 |
box = instance_create(xx + 310, yy + 165, obj_growtangle); |
42 |
box.sprite_index = spr_battlebg_2; |
43 |
scr_moveheart(); |
44 |
damagebox = instance_create(box.x, box.y, obj_growtangle_bouncer); |
45 |
damagebox.type = 0; |
46 |
} |
47 |
if (attack == 5) |
48 |
{ |
49 |
visible = 0; |
50 |
chainking = instance_create(x, y, obj_chainking); |
51 |
chainking.type = 1; |
52 |
chainking.subtype = 1; |
53 |
box = instance_create(xx + 200, yy + 175, obj_nonsolid_growtangle); |
54 |
box.sprite_index = spr_battlebg_wavechain; |
55 |
scr_moveheart(); |
56 |
} |
57 |
if (attack == 6) |
58 |
{ |
59 |
visible = 0; |
60 |
timeruse = 0; |
61 |
chainking = instance_create(x, y, obj_chainking); |
62 |
chainking.type = 2; |
63 |
chainking.subtype = 2; |
64 |
box = instance_create(xx + 205, yy + 170, obj_nonsolid_growtangle); |
65 |
box.sprite_index = spr_battlebg_1; |
66 |
scr_moveheart(); |
67 |
} |
68 |
if (attack == 7) |
69 |
{ |
70 |
box = instance_create(xx + 340, yy + 170, obj_growtangle); |
71 |
scr_moveheart(); |
72 |
dd = instance_create(0, 0, obj_dbulletcontroller); |
73 |
dd.type = 35; |
74 |
timeruse = 1; |
75 |
faketimermax = 220; |
76 |
faketimer = 0; |
77 |
} |
78 |
if (attack == 8) |
79 |
{ |
80 |
box = instance_create(xx + 310, yy + 165, obj_growtangle); |
81 |
box.sprite_index = spr_battlebg_2; |
82 |
scr_moveheart(); |
83 |
damagebox = instance_create(box.x, box.y, obj_growtangle_bouncer); |
84 |
damagebox.type = 3; |
85 |
} |
86 |
if (attack == 9) |
87 |
{ |
88 |
box = instance_create(xx + 340, yy + 170, obj_growtangle); |
89 |
scr_moveheart(); |
90 |
dd = instance_create(0, 0, obj_dbulletcontroller); |
91 |
dd.type = 23; |
92 |
timeruse = 1; |
93 |
faketimermax = 190; |
94 |
faketimer = 0; |
95 |
} |
96 |
if (attack == 10) |
97 |
{ |
98 |
visible = 0; |
99 |
chainking = instance_create(x, y, obj_chainking); |
100 |
chainking.type = 1; |
101 |
chainking.subtype = 2; |
102 |
box = instance_create(xx + 200, yy + 175, obj_nonsolid_growtangle); |
103 |
box.sprite_index = spr_battlebg_wavechain; |
104 |
scr_moveheart(); |
105 |
} |
106 |
if (attack == 11) |
107 |
{ |
108 |
visible = 0; |
109 |
timeruse = 0; |
110 |
chainking = instance_create(x, y, obj_chainking); |
111 |
chainking.type = 2; |
112 |
chainking.subtype = 1; |
113 |
box = instance_create(xx + 205, yy + 170, obj_nonsolid_growtangle); |
114 |
box.sprite_index = spr_battlebg_1; |
115 |
scr_moveheart(); |
116 |
} |
117 |
} |
118 |
if (timeruse == 1) |
119 |
{ |
120 |
faketimer += 1; |
121 |
if (faketimer >= faketimermax) |
122 |
{ |
123 |
with (obj_bulletparent) |
124 |
instance_destroy(); |
125 |
with (obj_dbulletcontroller) |
126 |
instance_destroy(); |
127 |
with (obj_growtangle) |
128 |
growcon = 3; |
129 |
with (obj_heart) |
130 |
instance_destroy(); |
131 |
active = 1; |
132 |
timeruse = 0; |
133 |
faketimer = 0; |
134 |
} |
135 |
} |