You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
465 B
28 lines
465 B
action_inherited()
|
|
if (active == 1 && stun == 0 && frozen == 0)
|
|
{
|
|
if (state == 0)
|
|
{
|
|
image_speed = 0.15
|
|
image_index = 1
|
|
vspeed = -3
|
|
state = 1
|
|
}
|
|
if (state == 1)
|
|
{
|
|
vspeed = -3
|
|
if (y <= (oCharacter.y - 26))
|
|
state = 2
|
|
}
|
|
if (state == 2)
|
|
{
|
|
image_speed = 0.2
|
|
vspeed = 0
|
|
hspeed = (facing * 2.5)
|
|
}
|
|
}
|
|
else
|
|
speed = 0
|
|
if (state == 100)
|
|
enemy_death()
|