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.
AM2R-Multitroid-Fair-Team-PVP/Export_Code/gml_Object_oAutom_Step_0.gml

36 lines
754 B

action_inherited()
enemy_active_check(20)
if (active == 1 && stun == 0 && frozen == 0)
{
if (state == 1)
{
if (collision_line((x - 16), (y - 8), (x - 16), y, oSolid, true, true) > 0 && facing == -1)
facing = 1
if (collision_line((x + 16), (y - 8), (x + 16), y, oSolid, true, true) > 0 && facing == 1)
facing = -1
hspeed = facing
calpha = 0
}
if (state == 2)
{
hspeed = 0
if (calpha < 1)
calpha += 0.05
}
if (state == 3)
{
hspeed = 0
if (calpha > 0)
calpha -= 0.05
}
image_speed = 0.5
}
else
hspeed = 0
if (state == 100)
{
enemy_death2()
repeat (20)
instance_create(x, y, oDebris)
}