[Solved] How to limit dmg taken per collision

My character takes multiple instances of dmg when colliding with enemy attacks, I’m assuming this is because my hitbox is overlapping multiple times during the enemy attack animation. I’ve tried making the dmg instance trigger only once but something is still wrong.

Here is my event sheet. I want to know if I can add a timer before another dmg is taken or I can make it so that I only take 1 instance of dmg during a specific enemy attack animation frame.

Also if possible, how do I add invulnerability frames to my character, when I get hit i made it so i stop but I found out that im infinitely getting combo’d to death

1 Like

Hey!
If you want the damage once per collision, add a “Trigger Once” condition to your top event
Screenshot 2025-11-27 at 9.21.09 AM

If you want it to be on a timer, the best way to do it would be to add a new variable. Only let the skeleton attack if the variable is true. When the skeleton attacks, set the variable to false, do the attack, then wait however long then set the variable to true (allowing the skeleton to attack again!)

2 Likes

tysm, i got this to work!

1 Like

No worries!
(I updated your topic title to say [Solved])