i want make my hero ,when game just start , my hero can immun 5 seconds from the enemy bullets, i already make the capx , but not working, can some one help me to fix it. this is my file :
dropbox.com/s/xod2osu9fssb09v/immun5Second.capx
thanks
Develop games in your browser. Powerful, performant & highly capable.
In your capx you made every bullet harmless for 5 seconds.. Which is wrong, obviously.
For this task it's best to use Timer.
Add isImmune boolean instance variable to your Player sprite and Timer behavior.
Change your code like this:
(clickable)
thank you so much dop2000 , this is what i want, thanks