Forum Discussion
Error in forward and backward state in drag and drop activity
I gave the drag and drop activity a limit of 3 repetitions. It works fine on first startup. However, when you move to other slides with the forward and back buttons and switch to the drag and drop activity again, the 3 repetition rule is disabled. Do you have a solution?
- NedimCommunity Member
You need to establish a method to reset the "KD1Say" variable to 0 upon revisiting this slide. Currently, upon returning, "KD1Say" remains at 3, disrupting your interaction and visibility layers based on this variable's value. If you reset it to 0 when the timeline starts on this slide, it still won't function properly because on your "Try again" layer, you have a trigger to jump back to this slide, causing the variable to reset to 0 and disrupting your interaction once more.
Solution:
Create a new trigger as indicated in the screenshot (green) and adjust the existing trigger (red). This setup ensures that the "KD1Say" variable resets to 0 only if it equals 3. The second trigger prevents the "Try again" layer from appearing when the "KD1Say" variable is 0 upon revisiting this slide.
Apply the same adjustments for the second drag and drop interaction. - cerikLisans8Community Member
Thanks. Problem solved.