I am working with a basic platformer action game. I want to implement a combo system to where hitting an enemy consecutively would build a combo. However, I am using the animation of my sword as a hitbox.. and there are multiple frames that would collide with an enemy.
For instance, if I swing once and hit the enemy, the combo counter goes up by 3 (because 3 frames collide with the enemy). I want only an increase of 1 for the counter. How can I do this?