Hi guys, i started using Construct 2 this year, and i need some help!
I'm trying to make my character immune to damage for a while ( like when you pick up the mario star)
but it doesn't work
I have tried disabling the collision for a short period of time, but my character life still drops when a bullet hits him
How can i make my character invincible for a while??Like, his life wont drop after picking up a specific item, for a short period of time (like 4 seconds of invincibility)
Thanks for the attention, sorry for my bad english :/
To do this you need to create a variable called invincible and on your events where it will decide wether the player has been hit add a sub event saying if invincible = 0 subtract 1 from lives and when the player equips the invincible power up that lasts for lets say 15 seconds add to the event sheet player on collision with invinciblepowerupobject add 1 to invincible set object invinciblepowerupobject invisible wait 15 secs set invincible to 0