So I’m making a bare bones shmup game and I would like to make it so that the player, when hit, blinks and can’t be hit until the blinking stops. This way its not possible to get hit by like 3 things at a time and instantly lose all of your health. I’m VERY new to coding so a script with an explanation or a way to do this would be so appreciated.
The blink
Set bool cantBeHurt = true, use coroutine, unset it after a set amount of time
If you have more specific question about code you have written, please post that.