|
1
|
vspeed = 0;
|
|
2
|
hspeed = 0;
|
|
3
|
gravity = 0;
|
|
4
|
x = xprevious;
|
|
5
|
y = yprevious;
|
|
6
|
alarm[1] = 15; gml_Object_blt_whiteax_Alarm_1.gml
if (move == 1)
{
if (axetype == 0)
hspeed = 1.8;
else
hspeed = -1.8;
vspeed = -3.8;
if (hard == 1)
vspeed = -3.4;
if (scr_monstersum() == 1)
vspeed = -3.1;
gravity_direction = 270;
gravity = 0.2;
}
if (move == 0)
{
hspeed = 0;
alarm[1] = 10 + floor(random(14));
move = 1;
}
visible = true;
|
|
7
|
if (instance_exists(obj_shaker))
|
|
8
|
{
|
|
9
|
with (obj_shaker)
|
|
10
|
instance_destroy();
|
|
11
|
}
|
|
12
|
snd_play(snd_noise);
|
|
13
|
global.hshake = 3;
|
|
14
|
global.shakespeed = 2;
|
|
15
|
global.vshake = 0;
|
|
16
|
instance_create(0, 0, obj_shaker);
|
|
17
|
if (scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; () == 1)
|
|
18
|
alarm[1] = 4; gml_Object_blt_whiteax_Alarm_1.gml
if (move == 1)
{
if (axetype == 0)
hspeed = 1.8;
else
hspeed = -1.8;
vspeed = -3.8;
if (hard == 1)
vspeed = -3.4;
if (scr_monstersum() == 1)
vspeed = -3.1;
gravity_direction = 270;
gravity = 0.2;
}
if (move == 0)
{
hspeed = 0;
alarm[1] = 10 + floor(random(14));
move = 1;
}
visible = true;
|