why can't you just have an int equal to 3 and then when you want it lose a life you do if (you get an answer wrong) {
int --;
}
then an if statement saying:
if (int =0)
{
You lose code
willdashortelf 2 years ago
Yeah, you can do it like that as well. Just theres one mistake you make. In your "if" statement, you must use 2 "=" signs, not just one.
PixelCUBEstudios 2 years ago
thank you thank you thank you ive been looking for something like this for ever thanks!!
eddiefishhhh 2 years ago
hey how could i make it lose a life if something collides with it
iphonedevJr 2 years ago
i have the same question, have you figured it our yet?
Geekostech 2 years ago
Im not sure about that. I haven't tried to make any kind of collision detection yet.
why can't you just have an int equal to 3 and then when you want it lose a life you do if (you get an answer wrong) {
int --;
}
then an if statement saying:
if (int =0)
{
You lose code
}
willdashortelf 2 years ago
Yeah, you can do it like that as well. Just theres one mistake you make. In your "if" statement, you must use 2 "=" signs, not just one.
PixelCUBEstudios 2 years ago
thank you thank you thank you ive been looking for something like this for ever thanks!!
eddiefishhhh 2 years ago
hey how could i make it lose a life if something collides with it
iphonedevJr 2 years ago
i have the same question, have you figured it our yet?
Geekostech 2 years ago
Im not sure about that. I haven't tried to make any kind of collision detection yet.
PixelCUBEstudios 2 years ago