How Change State of Button Based on Correct/Incorrect Score?
Mar 10, 2016
I am trying to figure out how to change the state of a button based on an answer on a multiple-choice question? I've created a Critical Policies course that requires the user to validate they understand the policy. The policies are their own scene, accessed by a button from a main menu. The user clicks the button to access the policy, reads, and validates their understanding. Once they validate they do or do not understand the policy, they return to the main menu to access the other policies. I want the button to have a green checkmark indicating they validated their understanding and a red checkmark validating they do not understand the policy. Any advice??
6 Replies
Hi, Kenneth -- Many thanks for reaching out here! Would it be possible for you to share your file to help illustrate how things are set up?
Have a look at the attached and see if that's what you want. I adapted this from a previous example. I use a simple variable to indicate whether the policy was understood or not. Based on that variable I show the status on the main menu. In this (old) example, I use two checkboxes, but you can adapt the logic as part of a multiple choice question.
Hi, Michael -- Just wanted to mention that the attachment you intended to share unfortunately did not come through. Please feel free to reattach and thanks again for your assistance! :)
Thanks for noticing, I reattached the example file.
Hi Michael, you example worked perfectly for my situation. I had several policies that had to be acknowledged, so I had to setup a variable for each. Thank you! You saved me precious development time by sharing your example.
Thank you, Michael! I'd been struggling to figure out something similar for several days and your example gave me enough of a starting point to get the rest of the way. I really appreciate you taking the time to create an example for the rest of us!