Urgent!! How to display star at the top right corner of screen for every right answer

Dec 04, 2020

Hello,

I am making a game where learner has to drop an object to the right bag.

I want to display a yellow star at the top right corner of the screen if the answer is right. and red star if the answer is wrong.

Also when learner sees the next question, he should see the previous question star as yellow or red based on the answer he gave.

Attaching a screenshot for your reference

Please help!

2 Replies
Math Notermans

With some states this is easily done. Create an element with 3 states. Active at start being the grey star.. Add a state 'Correct' with the orange star and 'Wrong' with the red star. Create the element on top with 5 or more stars... and when needed change the state of the star with a trigger to 'Correct' or 'Wrong'/

Ned Whiteley

Math beat me to it, but here is my example anyway. It uses the same principle he has highlighted, using triggers to change the state of the stars depending on the result. Variables are adjusted when either the Correct or Incorrect layer appears and these then determine the colour of the star that is displayed.

If you have any queries, just get back to me here.