Forum Discussion
Correct layer not displaying based on button states
I added some textboxes that show the states of the buttons to see what they were like, and it seems that the ovals referenced by your "Show layer incorrect feedback" trigger only ever change to the Correct state. Whether I click the thumb-up or the thumb-down for statement one, the thumbs-down button will always change to the correct state and never the incorrect state. As such, none of the four ovals referenced by the above-mentioned "Show layer" trigger will ever be incorrect, which means the incorrect layer trigger will never fire as true.
If you update the "Show layer" trigger to look at the incorrect ovals in each statement instead of the correct ovals, then you'll have the opposite problem of the incorrect feedback layer always showing even if the learner gets all the choices right because, duh, each of the incorrect ovals always goes to the incorrect state as well.
Reconciling this particular implementation will be interesting. For the way my head works, I'd create a number variable for each statement called something like q1answer, and default it to zero. Then I'd have the correct button change the value of q1answer to 1 and the incorrect button change the value of q1answer to -1. That variable change could simplify all of the visual updates with the states since they amount to "do A when q1answer changes if q1answer is <0, else do B (when q1answer is >0).
Am I right that you basically want the incorrect feedback layer to show after each incorrect answer chosen?
Related Content
- 5 months ago
- 5 months ago