I assume you are going to have more than one question that needs to be answered. Somehow you need to keep track of which question is being asked, either with a variable or by looking at the costume that the sprite that is showing the question is using (assuming you are using a sprite costume to show the question).
Then, assuming you have a separate sprite for each of the possible answers, you just need to set up a script that only changes the score when that answer is selected for the correct questions.
So, for example, let's pretend that you used a variable to keep track of the question being asked, the variable is called "Question Number" and it gets changed every time the question changes. Then the script on one of the answer sprites might look like:
When "Answer Sprite 1" Clicked
if "Question Number" = 2 OR "Question Number" = 5
Change "Score" by 1
Else
Change "Score by -1
You will notice that I have added a penalty (you lose points) if a wrong answer is choosen, that is optional. In the above example, the first sprite is the correct answer only for questions 2 and 5. This of course can be extended by using more OR blocks.
Hopefully you find this helpful.
Last edited by Paddle2See (2008-04-27 10:10:22)
Offline