I have an Autorunner game and i wanted to add a post-hit invincibility feature to the game.
I've got currently got obstacles in my game that you need to avoid and if you touch the obstacle, your health decreases by 30 (full health is 90). I've added Flash behaviour to my player so that when you collide with the obstacle, the player flashes.
I'm struggling to input post-hit invincibility into the game, i don't know how to go about it.
What i've tried is creating an event where if the player is flashing and they collide with an obstacle, then it adds 30 to the player's health to counteract the players health descreasing (hope that makes sense).
I've provided a capx i quickly made that show what i''ve done, hope someone can help.