Recently in the game I’m making, I’ve been attempting to implement a period of temporary invulnerability to damage after the player character has taken a hit like you see in a lot of old-school games.
I’ve already managed to incorporate the temporary invulnerability but now I need some sort of visual indicator of when the temporary invulnerability has expired. In older games the player’s sprite would begin to flicker while invulnerable; an effect achieved by rapidly alternating between enabling/disabling the visibility of the player character’s sprite.
I would like to to be able to feature this flickering effect in my own 3D side-scrolling game but I’m not exactly sure on how to go about creating this effect.
Any help whatsoever would be greatly appreciated!
Player damage blueprint: