Problem with my scoring variable

Feb 09, 2021

Hi everyone!

I am stuck with this exercise (see attachment). I want to add +1 to my variable called SCORE (see below "your points") in each slide, each time the user answers correctly. It is working for the first slide, but not for the others... And the triggers are exactly the same (!!??).

Any help would be very very appreciated.

Cedric

5 Replies
Walt Hamilton

The built-in Down state has a superpower connected to it. That superpower is that it automatically changes to the Down state when the mouse is over it and the mouse button is down.  If you create a trigger to change the state to Down, you can expect your trigger to cause conflicts with the built-in trigger. The results can be strange and unpredictable, as you have noticed. That's the problem.

The solution is much simpler. Select the two captions, give them each a Selected State, make them a Button set, and use their built-in superpowers. The superpower of the Selected state is when you click it, it becomes Selected, and stays Selected until you click it again, when it unselects itself. The superpower of the Button state is that only one of them can be Selected at a time. When one is selected, it changes all the others in its set to Normal..