I
Iceniq
Guest
Hello. I am using this code in the tree's Collision Event to lower its hp by 1 every time the floor(image_index) is 3:
How can I make this run only once when floor(image_index) hits 3 and then wait until it hits 3 again instead of it running repeatedly until it hits 4?
Thank you for your help!
Code:
if (sprite_index = sPlayerChopRT || sprite_index = sPlayerChopLT)
{
if (floor(image_index = 3))
{
other.hp -= 1;
}
}
Thank you for your help!