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_oWallfire_Step_0...

25 lines
536 B

action_inherited()
enemy_active_check(20)
enemy_target_check(90, 1)
if (active == 1 && stun == 0 && frozen == 0)
{
if (state == 1)
{
if (image_index > 0)
image_index -= 0.5
}
if (state == 2 && image_index < 3)
image_index += 0.5
}
if (state == 100)
{
spark = instance_create(x, y, oFXAnimSpark)
spark.sprite_index = sWallfireDestr
spark.image_speed = 0
spark.depth = 1
spark.image_xscale = facing
repeat (20)
instance_create(x, y, oDebris)
enemy_death()
}