I know this topic has to exist but I can't find anything through numerous searches...
I'm attempting a Zelda-style game, but noticed when my player runs into an enemy, the enemy hits multiple times and takes huge chunks out of the player health. I'm wondering if there's a way to tell C2 when the player is flashing (indicating they've been hit) to freeze the health variable until the flash has finished? That kind of half-second immunity you get after taking damage in virtually any game.
Develop games in your browser. Powerful, performant & highly capable.
There are many ways to do this.
Since you are using Flash, simply add condition "Is NOT flashing" to the event where you subtract health.
(add "Is flashing", then right-click and invert)
Enemy->Is overlapping Player Player subtract 10 from Health
Player->Is NOT flashing