I have an event to hurt the player, when Player has collision with Enemy, Player gets hurts, and then 3 seconds of invincible. But the problem is if the player collides (overlaps) the enemy, and then get hurts, but the player doesn't move outside the enemy's hitbox,the invincible timer finish, the player is still overlapping the enemy, but the player doesn't get hurt again
Is there another event to fix this?
Develop games in your browser. Powerful, performant & highly capable.
Bounce, so you bounce off the enemy and not sit inside it. Or use overlap not collision.