Copy link to clipboard
Copied
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");
}
For RIGHT answer write:
on (release){
gotoAndPlay("02");
score++;
}
Last frame AS percent=score/4*100 + "%";
Best regards
Ekri
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.
Copy link to clipboard
Copied
Where do you end up seeing an answering being 50% correct?
Copy link to clipboard
Copied
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
How clean is your room?
I clean my room every day 100%
I clean my house once a week 50%
Never 0%
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hei
Thanks for the reply.
I have 10 questions (100%) and when changing the score +=0,5 it still gives the result of 10%.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Ok, got it working.Thank you soo much ![]()
Copy link to clipboard
Copied
You're welcome
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more