As example, while my player is flashing, thats for 1 sec, his health variable cant change. So when hes walking into a enemy, he should be immortal for 1 sec.
How can i check that? First step: while player is flashing and then? Is there something to set a variable to a value that cant be changed? Thanks!