Hello,
Sorry for my english. I’m french
It’s not my first work with Hype, but it’s my first with javascript …AAAAAAArghhh.
I’m trying to create a MCQ. I download a quiz model on the forum. And try to edit it…but i dont talk JS, i am a donkey.
At the end of the MCQ, i need to find the highest score (anwsers A, B and C) and then go to a specific page. There is 3 pages at the end. One for A, one for B, one for C
To clarify, you are looking to see which is the highest number between the variables of window.quizScoreA, window.quizScoreB, and window.quizScoreC? And then have the user go to a specific page?
This has a bias towards going to A, then B, then C if there is equality on the scores. Also you may need to adjust the scene names. We probably can’t write all the code for you, so it is recommended to pick up some JavaScript to extend this further.
Super !
Thanks a lot Jonathan.
It works. I just had to delete one “if” !
else if (window.quizScoreB >= window.quizScoreA && window.quizScoreB >= window.quizScoreC).