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.
22 lines
487 B
22 lines
487 B
action_inherited()
|
|
enemy_active_check(20)
|
|
enemy_target_check(90, 1)
|
|
if (active == 1 && stun == 0 && frozen == 0)
|
|
{
|
|
if (state == 1)
|
|
{
|
|
x += ((targetposx[targetnum] - x) / moveratio)
|
|
y += ((targetposy[targetnum] - y) / moveratio)
|
|
if (statetime >= movesteps)
|
|
{
|
|
targetnum += 1
|
|
if (targetnum > 3)
|
|
targetnum = 0
|
|
statetime = 0
|
|
}
|
|
}
|
|
image_speed = 0.5
|
|
}
|
|
if (state == 100)
|
|
enemy_death()
|