|
1
|
difficulty = 0;
|
|
2
|
grazed = 1;
|
|
3
|
grazepoints = 0;
|
|
4
|
instance_create(0, 0, obj_darkshape_light_aura);
|
|
5
|
image_alpha = 0;
|
|
6
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0, 1, 30);
|
|
7
|
timer = 0;
|
|
8
|
depth = obj_growtangle.depth - 2;
|
|
9
|
hands_surface = surface_create(640, 480);
|
|
10
|
base_speed = 0.13;
|
|
11
|
base_angle_speed = 0.05;
|
|
12
|
counter = irandom(999);
|
|
13
|
counter_speed = 0;
|
|
14
|
angle_counter = irandom(999);
|
|
15
|
angle_counter_speed = 0;
|
|
16
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("counter_speed", counter_speed, base_speed, 30);
|
|
17
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("angle_counter_speed", counter_speed, choose(base_angle_speed, -base_angle_speed), 30);
|
|
18
|
hand_distance = 280;
|
|
19
|
hand_direction = 0;
|
|
20
|
wave_counter = 0;
|
|
21
|
hand_1 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_regularbullet, 0, 0, spr_titan_battle_hand);
|
|
22
|
hand_2 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_regularbullet, 0, 0, spr_titan_battle_hand);
|
|
23
|
hand_1_overload = -1;
|
|
24
|
hand_2_overload = -1;
|
|
25
|
hand_1.grazed = 1;
|
|
26
|
hand_2.grazed = 1;
|
|
27
|
hand_1.grazepoints = 0;
|
|
28
|
hand_2.grazepoints = 0;
|
|
29
|
with (hand_1)
|
|
30
|
{
|
|
31
|
master = other.id;
|
|
32
|
fingers_broken = 0;
|
|
33
|
visible = false;
|
|
34
|
image_index = 0;
|
|
35
|
image_speed = 0;
|
|
36
|
image_xscale = 2;
|
|
37
|
image_yscale = -2;
|
|
38
|
active = false;
|
|
39
|
destroyonhit = false;
|
|
40
|
wall_destroy = false;
|
|
41
|
image_angle = 270;
|
|
42
|
image_alpha = 0;
|
|
43
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0, 1, 30);
|
|
44
|
scr_var_delayscr_var_delay
function scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_var_delayed(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_delay_var(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} ("active", true, 30);
|
|
45
|
finger_1 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_titan_battle_finger, 0, 0);
|
|
46
|
finger_2 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_titan_battle_finger, 0, 0);
|
|
47
|
finger_3 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_titan_battle_finger, 0, 0);
|
|
48
|
finger_4 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_titan_battle_finger, 0, 0);
|
|
49
|
finger_1.master = id;
|
|
50
|
finger_2.master = id;
|
|
51
|
finger_3.master = id;
|
|
52
|
finger_4.master = id;
|
|
53
|
finger_1.grazed = 1;
|
|
54
|
finger_2.grazed = 1;
|
|
55
|
finger_3.grazed = 1;
|
|
56
|
finger_4.grazed = 1;
|
|
57
|
finger_1.grazepoints = 0;
|
|
58
|
finger_2.grazepoints = 0;
|
|
59
|
finger_3.grazepoints = 0;
|
|
60
|
finger_4.grazepoints = 0;
|
|
61
|
finger_1.break_store = "hand1_finger1";
|
|
62
|
finger_2.break_store = "hand1_finger2";
|
|
63
|
finger_3.break_store = "hand1_finger3";
|
|
64
|
finger_4.break_store = "hand1_finger4";
|
|
65
|
finger_1.depth = depth - 1;
|
|
66
|
finger_2.depth = depth - 1;
|
|
67
|
finger_3.depth = depth - 1;
|
|
68
|
finger_4.depth = depth - 1;
|
|
69
|
for (var aa = 0; aa < 8; aa++)
|
|
70
|
finger_1.weak_off[aa] *= 0.75;
|
|
71
|
for (var aa = 0; aa < 8; aa++)
|
|
72
|
finger_3.weak_off[aa] *= 0.75;
|
|
73
|
finger_1.weak_dist = 0;
|
|
74
|
finger_2.weak_dist = 43;
|
|
75
|
finger_3.weak_dist = 0;
|
|
76
|
finger_4.weak_dist = 43;
|
|
77
|
with (obj_titan_enemy)
|
|
78
|
{
|
|
79
|
var h1f1 = true;
|
|
80
|
var h1f2 = true;
|
|
81
|
var h1f3 = true;
|
|
82
|
var h1f4 = true;
|
|
83
|
if (variable_instance_exists(id, "hand1_finger1"))
|
|
84
|
{
|
|
85
|
if (hand1_finger1)
|
|
86
|
h1f1 = false;
|
|
87
|
}
|
|
88
|
if (variable_instance_exists(id, "hand1_finger2"))
|
|
89
|
{
|
|
90
|
if (hand1_finger2)
|
|
91
|
h1f2 = false;
|
|
92
|
}
|
|
93
|
if (variable_instance_exists(id, "hand1_finger3"))
|
|
94
|
{
|
|
95
|
if (hand1_finger3)
|
|
96
|
h1f3 = false;
|
|
97
|
}
|
|
98
|
if (variable_instance_exists(id, "hand1_finger4"))
|
|
99
|
{
|
|
100
|
if (hand1_finger4)
|
|
101
|
h1f4 = false;
|
|
102
|
}
|
|
103
|
if (h1f1 || h1f2 || h1f3 || h1f4)
|
|
104
|
{
|
|
105
|
if (!h1f1)
|
|
106
|
{
|
|
107
|
other.fingers_broken++;
|
|
108
|
instance_destroy(other.finger_1);
|
|
109
|
}
|
|
110
|
if (!h1f2)
|
|
111
|
{
|
|
112
|
other.fingers_broken++;
|
|
113
|
instance_destroy(other.finger_2);
|
|
114
|
}
|
|
115
|
if (!h1f3)
|
|
116
|
{
|
|
117
|
other.fingers_broken++;
|
|
118
|
instance_destroy(other.finger_3);
|
|
119
|
}
|
|
120
|
if (!h1f4)
|
|
121
|
{
|
|
122
|
other.fingers_broken++;
|
|
123
|
instance_destroy(other.finger_4);
|
|
124
|
}
|
|
125
|
}
|
|
126
|
else
|
|
127
|
{
|
|
128
|
hand1_finger1 = false;
|
|
129
|
hand1_finger2 = false;
|
|
130
|
hand1_finger3 = false;
|
|
131
|
hand1_finger4 = false;
|
|
132
|
}
|
|
133
|
}
|
|
134
|
}
|
|
135
|
with (hand_2)
|
|
136
|
{
|
|
137
|
master = other.id;
|
|
138
|
fingers_broken = 0;
|
|
139
|
visible = false;
|
|
140
|
image_index = 0;
|
|
141
|
image_speed = 0;
|
|
142
|
image_xscale = 2;
|
|
143
|
image_yscale = 2;
|
|
144
|
active = false;
|
|
145
|
destroyonhit = false;
|
|
146
|
wall_destroy = false;
|
|
147
|
image_angle = 90;
|
|
148
|
image_alpha = 0;
|
|
149
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0, 1, 30);
|
|
150
|
scr_var_delayscr_var_delay
function scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_var_delayed(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
function scr_delay_var(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} ("active", true, 30);
|
|
151
|
finger_1 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_titan_battle_finger, 0, 0);
|
|
152
|
finger_2 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_titan_battle_finger, 0, 0);
|
|
153
|
finger_3 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_titan_battle_finger, 0, 0);
|
|
154
|
finger_4 = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (x, y, obj_titan_battle_finger, 0, 0);
|
|
155
|
finger_1.master = id;
|
|
156
|
finger_2.master = id;
|
|
157
|
finger_3.master = id;
|
|
158
|
finger_4.master = id;
|
|
159
|
finger_1.grazed = 1;
|
|
160
|
finger_2.grazed = 1;
|
|
161
|
finger_3.grazed = 1;
|
|
162
|
finger_4.grazed = 1;
|
|
163
|
finger_1.grazepoints = 0;
|
|
164
|
finger_2.grazepoints = 0;
|
|
165
|
finger_3.grazepoints = 0;
|
|
166
|
finger_4.grazepoints = 0;
|
|
167
|
finger_1.break_store = "hand2_finger1";
|
|
168
|
finger_2.break_store = "hand2_finger2";
|
|
169
|
finger_3.break_store = "hand2_finger3";
|
|
170
|
finger_4.break_store = "hand2_finger4";
|
|
171
|
finger_1.depth = depth - 1;
|
|
172
|
finger_2.depth = depth - 1;
|
|
173
|
finger_3.depth = depth - 1;
|
|
174
|
finger_4.depth = depth - 1;
|
|
175
|
finger_1.image_yscale *= -1;
|
|
176
|
finger_2.image_yscale *= -1;
|
|
177
|
finger_3.image_yscale *= -1;
|
|
178
|
finger_4.image_yscale *= -1;
|
|
179
|
for (var aa = 0; aa < 8; aa++)
|
|
180
|
finger_2.weak_off[aa] *= 0.75;
|
|
181
|
for (var aa = 0; aa < 8; aa++)
|
|
182
|
finger_4.weak_off[aa] *= 0.75;
|
|
183
|
finger_1.weak_dist = 43;
|
|
184
|
finger_2.weak_dist = 0;
|
|
185
|
finger_3.weak_dist = 43;
|
|
186
|
finger_4.weak_dist = 0;
|
|
187
|
with (obj_titan_enemy)
|
|
188
|
{
|
|
189
|
var h2f1 = true;
|
|
190
|
var h2f2 = true;
|
|
191
|
var h2f3 = true;
|
|
192
|
var h2f4 = true;
|
|
193
|
if (variable_instance_exists(id, "hand2_finger1"))
|
|
194
|
{
|
|
195
|
if (hand2_finger1)
|
|
196
|
h2f1 = false;
|
|
197
|
}
|
|
198
|
if (variable_instance_exists(id, "hand2_finger2"))
|
|
199
|
{
|
|
200
|
if (hand2_finger2)
|
|
201
|
h2f2 = false;
|
|
202
|
}
|
|
203
|
if (variable_instance_exists(id, "hand2_finger3"))
|
|
204
|
{
|
|
205
|
if (hand2_finger3)
|
|
206
|
h2f3 = false;
|
|
207
|
}
|
|
208
|
if (variable_instance_exists(id, "hand2_finger4"))
|
|
209
|
{
|
|
210
|
if (hand2_finger4)
|
|
211
|
h2f4 = false;
|
|
212
|
}
|
|
213
|
if (h2f1 || h2f2 || h2f3 || h2f4)
|
|
214
|
{
|
|
215
|
if (!h2f1)
|
|
216
|
{
|
|
217
|
other.fingers_broken++;
|
|
218
|
instance_destroy(other.finger_1);
|
|
219
|
}
|
|
220
|
if (!h2f2)
|
|
221
|
{
|
|
222
|
other.fingers_broken++;
|
|
223
|
instance_destroy(other.finger_2);
|
|
224
|
}
|
|
225
|
if (!h2f3)
|
|
226
|
{
|
|
227
|
other.fingers_broken++;
|
|
228
|
instance_destroy(other.finger_3);
|
|
229
|
}
|
|
230
|
if (!h2f4)
|
|
231
|
{
|
|
232
|
other.fingers_broken++;
|
|
233
|
instance_destroy(other.finger_4);
|
|
234
|
}
|
|
235
|
}
|
|
236
|
else
|
|
237
|
{
|
|
238
|
hand2_finger1 = false;
|
|
239
|
hand2_finger2 = false;
|
|
240
|
hand2_finger3 = false;
|
|
241
|
hand2_finger4 = false;
|
|
242
|
}
|
|
243
|
}
|
|
244
|
}
|
|
245
|
alarm[0] = 30; gml_Object_obj_titan_battle_hands_manager_Alarm_0.gml
curl_fingers();
if (difficulty < 2)
{
scr_lerpvar("counter_speed", counter_speed, 0, 15);
scr_lerpvar("angle_counter_speed", angle_counter_speed, 0, 15);
alarm[1] = 10;
}
else
{
scr_lerpvar("counter_speed", counter_speed, 0, 10);
scr_lerpvar("angle_counter_speed", angle_counter_speed, 0, 10);
alarm[1] = 5;
}
|
|
246
|
|
|
247
|
finger_vector = function(arg0, arg1 = id, arg2 = 0, arg3 = 0)
|
|
248
|
{
|
|
249
|
arg0.x = arg1.x + lengthdir_x(arg3, arg1.image_angle) + lengthdir_x(arg2, arg1.image_angle + 90);
|
|
250
|
arg0.y = arg1.y + lengthdir_y(arg3, arg1.image_angle) + lengthdir_y(arg2, arg1.image_angle + 90);
|
|
251
|
};
|
|
252
|
|
|
253
|
curl_fingers = function(arg0 = 0.5)
|
|
254
|
{
|
|
255
|
with (hand_1)
|
|
256
|
{
|
|
257
|
with (finger_1)
|
|
258
|
scr_var_delayed("image_speed", arg0, 2);
|
|
259
|
with (finger_2)
|
|
260
|
scr_var_delayed("image_speed", arg0, 4);
|
|
261
|
with (finger_3)
|
|
262
|
scr_var_delayed("image_speed", arg0, 6);
|
|
263
|
with (finger_4)
|
|
264
|
scr_var_delayed("image_speed", arg0, 8);
|
|
265
|
}
|
|
266
|
with (hand_2)
|
|
267
|
{
|
|
268
|
with (finger_1)
|
|
269
|
scr_var_delayed("image_speed", arg0, 2);
|
|
270
|
with (finger_2)
|
|
271
|
scr_var_delayed("image_speed", arg0, 4);
|
|
272
|
with (finger_3)
|
|
273
|
scr_var_delayed("image_speed", arg0, 6);
|
|
274
|
with (finger_4)
|
|
275
|
scr_var_delayed("image_speed", arg0, 8);
|
|
276
|
}
|
|
277
|
};
|
|
278
|
|
|
279
|
wibbly_bullets = function(arg0, arg1, arg2)
|
|
280
|
{
|
|
281
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (arg0.x + lengthdir_x(arg2, image_angle + 180) + lengthdir_x(arg1, image_angle - 90), arg0.y + lengthdir_y(arg2, image_angle + 180) + lengthdir_y(arg1, image_angle - 90), obj_regularbullet, arg0.image_angle + irandom_range(-25, 25), 0, spr_wibblywobbly_dark_bullet))
|
|
282
|
{
|
|
283
|
grazed = 1;
|
|
284
|
grazepoints = 0;
|
|
285
|
damage = 90;
|
|
286
|
target = 4;
|
|
287
|
parent_id = arg0.id;
|
|
288
|
image_speed = 0.5;
|
|
289
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 1, 2, 60);
|
|
290
|
image_xscale = 0;
|
|
291
|
image_yscale = 0;
|
|
292
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", 0, 2, 15, 1, "out");
|
|
293
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0, 2, 15, 1, "out");
|
|
294
|
}
|
|
295
|
};
|
|
296
|
|
|
297
|
wibbly_bullets2 = function(arg0, arg1, arg2)
|
|
298
|
{
|
|
299
|
with (scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (arg0.x + lengthdir_x(arg2, image_angle) + lengthdir_x(arg1, image_angle + 90), arg0.y + lengthdir_y(arg2, image_angle) + lengthdir_y(arg1, image_angle + 90), obj_regularbullet, arg0.image_angle + irandom_range(-25, 25), 0, spr_wibblywobbly_dark_bullet))
|
|
300
|
{
|
|
301
|
grazed = 1;
|
|
302
|
grazepoints = 0;
|
|
303
|
damage = 90;
|
|
304
|
target = 4;
|
|
305
|
parent_id = arg0.id;
|
|
306
|
image_speed = 0.5;
|
|
307
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("speed", 1, 2, 60);
|
|
308
|
image_xscale = 0;
|
|
309
|
image_yscale = 0;
|
|
310
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_xscale", 0, 2, 15, 1, "out");
|
|
311
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_yscale", 0, 2, 15, 1, "out");
|
|
312
|
}
|
|
313
|
};
|
|
314
|
|
|
315
|
selfdestruct = function(arg0)
|
|
316
|
{
|
|
317
|
if (arg0 == hand_1)
|
|
318
|
{
|
|
319
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("hand_1_overload", 0, 1, 30);
|
|
320
|
scr_lerpvar_instancescr_lerpvar_instance
function scr_lerpvar_instance()
{
__lerpvar = instance_create(0, 0, obj_lerpvar);
__lerpvar.target = argument[0];
__lerpvar.varname = argument[1];
__lerpvar.pointa = argument[2];
__lerpvar.pointb = argument[3];
__lerpvar.maxtime = argument[4];
if (argument_count >= 6)
__lerpvar.easetype = argument[5];
if (argument_count >= 7)
__lerpvar.easeinout = argument[6];
return __lerpvar;
}
function scr_lerp_var_instance()
{
if (argument_count >= 6)
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
function scr_lerp_instance_var()
{
if (argument_count >= 6)
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} (hand_1, "x", hand_1.x, hand_1.x + 80, 30, 3, "out");
|
|
321
|
}
|
|
322
|
if (arg0 == hand_2)
|
|
323
|
{
|
|
324
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("hand_2_overload", 0, 1, 30);
|
|
325
|
scr_lerpvar_instancescr_lerpvar_instance
function scr_lerpvar_instance()
{
__lerpvar = instance_create(0, 0, obj_lerpvar);
__lerpvar.target = argument[0];
__lerpvar.varname = argument[1];
__lerpvar.pointa = argument[2];
__lerpvar.pointb = argument[3];
__lerpvar.maxtime = argument[4];
if (argument_count >= 6)
__lerpvar.easetype = argument[5];
if (argument_count >= 7)
__lerpvar.easeinout = argument[6];
return __lerpvar;
}
function scr_lerp_var_instance()
{
if (argument_count >= 6)
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
}
function scr_lerp_instance_var()
{
if (argument_count >= 6)
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5);
else if (argument_count >= 7)
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4, argument5, argument6);
else
return scr_lerpvar_instance(argument0, argument1, argument2, argument3, argument4);
} (hand_2, "x", hand_2.x, hand_2.x - 80, 30, 3, "out");
|
|
326
|
}
|
|
327
|
};
|