|
1
|
if (global.turntimer <= 5)
|
|
2
|
exit;
|
|
3
|
with (obj_bullet_knife)
|
|
4
|
{
|
|
5
|
if (variable_instance_exists(id, "on_a_chain"))
|
|
6
|
grazed = 0;
|
|
7
|
}
|
|
8
|
if (first)
|
|
9
|
{
|
|
10
|
first = false;
|
|
11
|
back_index++;
|
|
12
|
front_index++;
|
|
13
|
}
|
|
14
|
if (knife_direction_goal == 215)
|
|
15
|
{
|
|
16
|
var xchange = 20 + irandom(40);
|
|
17
|
var ychange = irandom_range(-12, 12);
|
|
18
|
with (obj_attack_knifechain_manager2)
|
|
19
|
{
|
|
20
|
ax += xchange;
|
|
21
|
if (ax >= 80)
|
|
22
|
ax -= 80;
|
|
23
|
ay = ychange;
|
|
24
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
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_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("x", x, anchor_x + ax, 24, 2, "out");
|
|
25
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
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_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("y", y, anchor_y + ay, 24, 2, "out");
|
|
26
|
}
|
|
27
|
knife_swing(145, 12, true);
|
|
28
|
with (obj_bullet_knife)
|
|
29
|
{
|
|
30
|
if (variable_instance_exists(id, "on_a_chain"))
|
|
31
|
knife_distance_goal = knife_distance_anchor + 0;
|
|
32
|
}
|
|
33
|
with (obj_aqua_enemy)
|
|
34
|
{
|
|
35
|
if (fight_type == "seth" && turns == 5)
|
|
36
|
{
|
|
37
|
other.alarm[1] = 20;
|
|
38
|
other.alarm[2] = 16;
|
|
39
|
}
|
|
40
|
}
|
|
41
|
}
|
|
42
|
else
|
|
43
|
{
|
|
44
|
knife_swing(215, 12, true);
|
|
45
|
}
|
|
46
|
alarm[0] = 35; gml_Object_obj_attack_knifechain_manager2_Alarm_0.gml
if (global.turntimer <= 5)
exit;
with (obj_bullet_knife)
{
if (variable_instance_exists(id, "on_a_chain"))
grazed = 0;
}
if (first)
{
first = false;
back_index++;
front_index++;
}
if (knife_direction_goal == 215)
{
var xchange = 20 + irandom(40);
var ychange = irandom_range(-12, 12);
with (obj_attack_knifechain_manager2)
{
ax += xchange;
if (ax >= 80)
ax -= 80;
ay = ychange;
scr_lerpvar("x", x, anchor_x + ax, 24, 2, "out");
scr_lerpvar("y", y, anchor_y + ay, 24, 2, "out");
}
knife_swing(145, 12, true);
with (obj_bullet_knife)
{
if (variable_instance_exists(id, "on_a_chain"))
knife_distance_goal = knife_distance_anchor + 0;
}
with (obj_aqua_enemy)
{
if (fight_type == "seth" && turns == 5)
{
other.alarm[1] = 20;
other.alarm[2] = 16;
}
}
}
else
{
knife_swing(215, 12, true);
}
alarm[0] = 35;
|