So for a school project I have to create a game. My game is like a trivia, somewhat similar to "who's still standing" So far, i can get the sprites to continue on point for if the person gets the answer right. BUT it screws up when i have the answer wrong. HELP!!! The project is due tomorrow
if <(answer) = Van Gogh> change [score v] by (1) play sound [scream-female1 v] hide broadcast [death1] endthis is if they get the answer right. next is what i have to get the answer wrong. IT DOESNT WORK!!!!!
if <not <(answer) = Van Gogh>> set [score v] to (0) broadcast [playerdeath] endit switches to the game over background, but the next question will pop up... HELP
Offline
Please upload your project so I can further assist you.
Offline
its up. "Last Sprite Standing" by djmorris96
Offline
Change the broadcast [death] to a broadcast and wait, and then add stop all after that.
Offline
@scimonster Which death? the death1, drops the contestant and moves on to the next player. playerdeath is supposed to drop you and the game stops from there
Offline
djmorris96 wrote:
So for a school project I have to create a game. My game is like a trivia, somewhat similar to "who's still standing" So far, i can get the sprites to continue on point for if the person gets the answer right. BUT it screws up when i have the answer wrong. HELP!!! The project is due tomorrow
if < (answer) = Van Gogh> change [score v] by (1) play sound [scream-female1 v] hide broadcast [death1] endthis is if they get the answer right. next is what i have to get the answer wrong. IT DOESNT WORK!!!!!if <not <(answer) = Van Gogh>> set [score v] to (0) broadcast [playerdeath] endit switches to the game over background, but the next question will pop up... HELP
Instead of using the not block, use an if-else statement for the whole thing, like this:
if <(answer) = [Van Gogh]> change [score v] by (1) play sound [scream-female1 v] hide broadcast [death1] else set [score v] to (0) broadcast [playerdeath] end
Offline
djmorris96 wrote:
@scimonster Which death? the death1, drops the contestant and moves on to the next player. playerdeath is supposed to drop you and the game stops from there
PlayerDeath.
Offline
thank you so much! the if-else statement fixed everything
Offline
NEVERMIND!!! STILL DOESNT WORK!! Is it just my computer. could someone try to download it and try?
Offline
http://scratch.mit.edu/projects/djmorris96/2328448
Offline
djmorris96 wrote:
http://scratch.mit.edu/projects/djmorris96/2328448
Ok. Judging by the looks, your coding is fine. Ill try to fix thoguh.
EDIT: FIXED. Ill release the finished later!
Last edited by Servine (2012-02-12 14:55:13)
Offline
Servine wrote:
djmorris96 wrote:
http://scratch.mit.edu/projects/djmorris96/2328448
Ok. Judging by the looks, your coding is fine. Ill try to fix thoguh.
EDIT: FIXED. Ill release the finished later!
THANK YOU!!! ASAP please.
Offline
Here it is!
I would have made that mistake, until I looked closer and found that if one of the answers is correct, it responds true, but then it checks if the answers were the EXACT as the given, and they weren't so its false. Basically, it works.
I also tweaked it a bit.
Offline