Forum Discussion
Wrong layer is briefly showing before it should
My escape room game has 10 translucent shapes used for hotspots that change state once clicked on. I have a trigger set up to show a final layer once all the states change to visited. This was working fine initially.
Because the state changes before you go to the relevant slide, when you click on the last translucent shape, the trigger thinks the game is complete and the final layer flashes up for a second before you're taken to the final slide. It makes it look like there is a glitch in the game. Once you complete that slide, the correct layer does show.
Is there a way to write a trigger so this doesn't happen or a variable? I am still very new and learning as I go but this is frustrating as the game is pretty much finished.
3 Replies
- RonPricePartner
What is the function of the layer? I am curious why have the layer if you are not wanting it to be seen. If it is serving a purpose, but you do not want those items to flash, you could move them down the timeline for .25 seconds, and then the layer will be blank when it flashes on the screen.
- NikkiClaytonCommunity Member
The layer contains a video that shows you escaping the escape room (with some audio). I am now wandering if I changed this layer to a separate slide and then have an exit button appear based on the change of state that exits you from the room as that might not show so obviously (it will of course pop up, but might be more discreet)
The game ends when the last translucent shape is clicked and the player completes the drag & drop task on the slide.
The other option could be that I control which order they click on the shapes.
- JudyNolletSuper Hero
NikkiClayton: Don't use a trigger that shows the layer when all the states = Visited. (An object changes to Visited when it is clicked. So, with that trigger, the layer will show as soon as the last shape/button is clicked. The layer doesn't show for long, because the program then jumps to another slide.)
Instead, the trigger should be to show the layer when the slide's timeline starts—with the condition that all of the states = Visited.
This example is for enabling NEXT, but it shows the overall trigger elements I'm talking about:
Related Content
- 2 months ago
- 3 months ago