This is my first question since I've signer up to Scirra so, here it goes...
I'm creating a top down zombie survival game and I introduced a mechanic that, after you get "bitten" by the zombie, a "cure" sprite is randomly created on the game.
My question is: How to I prevent another "cure" to be created while the first one is still on the scene?
Here's my line:
Thank you in advance to anyone who reply to my question
cure.pickedcount = 0
zombie on collision with player: create cure
many ways, but a subcondition of your colission event,| system compare cure.count < 1 | create cure
I'm sorry for not mentioning this before but I just started to work with construct 2 so, although I appreciate all your valuable input, I'm too much of a noob to keep up with it.
Do I have to create a global variable to the amount of cures i have on the scene?
add the condition to your event 8:
system -> compare two values: cure.count = 0
Develop games in your browser. Powerful, performant & highly capable.
Hi worked! Thank you all for the help!