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.
AM2Rogue/Export_Code/gml_Object_oSeerook_Step_0.gml

20 lines
413 B

action_inherited()
enemy_active_check(20)
enemy_target_check(90, 1)
if (active == 1 && frozen == 0)
{
if (state == 1)
{
xVel = (0.5 * facing)
if (isCollisionRight(2) && facing == 1)
facing = -1
if (isCollisionLeft(2) && facing == -1)
facing = 1
}
if (stun == 0)
moveTo(xVel, yVel)
image_speed = 0.4
}
if (state == 100)
enemy_death()