Cannot get trigger to work with Drop Correct states of multiple objects
Aug 31, 2020
By
Jason Chui
I am designing a slide to allow learners to play around with the formula c = f * lambda (speed of light = freq * wavelength).
There is a text box "C" that should only go into a rectangle "C Box".
The F and L (short for lambda) are trickier. I want to allow learners to drop a text box "F" into either a rectangle "F Box" or "L Box", and similarly allow them to drop a text box "L" into either a rectangle "F Box" or "L Box". That is because f*lambda or lambda*f should both be allowed.
- When learners drop the "F" text box into rectangle "F Box", I changed the state of "F Box" to Normal.
- When learners drop the "L" text box into rectangle "F Box", I changed the state of "F Box" to Drop Correct.
- When learners drop the "L" text box into rectangle "L Box", I changed the state of "L Box" to Normal.
- When learners drop the "F" text box into rectangle "L Box", I changed the state of "L Box" to Drop Correct.
Finally, I want to play an audio and also resume timeline when either one of the two conditions below is true:
- All rectangles have the state Normal
- Both F Box and L Box have the state Drop Correct and C Box has the state Normal.
However, I am having trouble achieving the correct behavior.
Please help!
3 Replies
Hi Jason, the easiest way I could find to do this was to assign a variable to each of the correct options cbox, fbox, lbox. Then as each of the items were correct/incorrect set those variables to true/false. You can then add a trigger to play the final correct and resume timeline based on the changing of cbox, fbox and lbox and when they change, check if all are "true", and if so, play final correct/resume. See attached file for a working solution.
Recently there have been trigger bugs linked to changing states. We had relied on a similar mechanism to what you are trying and it use to work perfectly and now it does not. Sometimes rebuilding the interaction makes it work. In the last few builds everything has become super hit and miss.
Hello Mike!
It sounds like you're running into issues with triggers and changing states! We're happy to help. We'll start by taking a look at your file and then move onto what the fix might be. Would you mind uploading your file to us? Here's a secure upload link.
This discussion is closed. You can start a new discussion or contact Articulate Support.