Forum Discussion

NikkiClayton's avatar
NikkiClayton
Community Member
5 days ago
Solved

How to set up an end trigger with hotspots

I have created an Escape Room game that uses hot spots to take the user to various drag and drop slides. Once completed, the player returns to this main page. How do I set up a trigger so that when...
  • JudyNollet's avatar
    5 days ago

    Since hotspots don't have states, you'll have to use variables to track whether they've been clicked. 

    • Create a T/F variable for each hotspot, with a default value of false.
    • Add a trigger to each hotspot that changes the corresponding variable to True when the hotspot is clicked. Be sure this comes before the trigger that jumps to the drag-and-drop slide.
    • On the main page, add a trigger that shows the special layer when the timeline starts on the slide, with conditions that all of the variables = True. (That trigger will run every time the user returns to the slide. But it will only perform the action when the conditions are met.)

     

    If you use transparent shapes with Visited states instead of hotspots, the condition on the trigger to show the special layer would be that all those objects are Visited.

    Here are some related posts that might help: