9 Replies Latest reply on Oct 9, 2009 7:22 AM by Ned Murphy

# Flash quiz game

Hi

I'm making a flash quiz game like instructed in this tutorial. http://www.tu-world.com/flash/flash_tutorial_08.php

After anwsering, it goes to the next frame, really simple. How is it possible that a anwser would be 50% correct?

Write actionscript for every button:

on (release){

gotoAndPlay("02");

}

on (release){

gotoAndPlay("02");

score++;

}

Last frame AS percent=score/4*100 + "%";

Best regards

Ekri

• ###### 1. Re: Flash quiz game

Where do you end up seeing an answering being 50% correct?

• ###### 2. Re: Flash quiz game

Hei

The anwsers in my quiz are 50% correct (half a point) if he/she anwser a question that is close, but not tottaly correct.Or for example

I clean my room every day 100%

I clean my house once a week 50%

Never 0%

• ###### 3. Re: Flash quiz game

If clicking a button will result in half a point being given, then instead of having the score++ line, for that particular button you would have score += 0.5

• ###### 4. Re: Flash quiz game

Hei

I have 10 questions (100%) and when changing the score +=0,5 it still gives the result of 10%.

• ###### 5. Re: Flash quiz game

Why would anything give a result of 10%?  Your score value would need to be 0.4 in order to get a 10% result.  Instead of worrying about the percentage for the moment, just have your 'score' value displayed

• ###### 6. Re: Flash quiz game

what i meant to say is, if there are 10 guestions, each question has 3 possible anwsers: one being 100% correct, the second being 50% correct and third one 0% correct.Now if a person anwsers only 1 question right, and it being the 50% correct anwser, the total outcome result would be 5% correct anwsers.I entered the code u gave me, but that didn't change it. Instead of 5% correct anwsers, it still gives 10 percent.

• ###### 7. Re: Flash quiz game

I don't see where my code would be the problem.  If you only add 0.5 to the score and divide it by 10 and multiply it by 100 you get 5%.  I mentioned already, you need to see what is going on with your score, and just as likely your calculation of the final score.

• ###### 8. Re: Flash quiz game

Ok, got it working.Thank you soo much

• ###### 9. Re: Flash quiz game

You're welcome