Jump to slide AND reset its state ?

May 22, 2014

Hello,

I've got a little problem with slide state.

I have a branching (landing) slide with 4 possibilities (doors). The user can decide to enter whatever door he wants. Each door jumps to a different scene and back to the landing (visited doors are then shut).

When all doors are shut, the slide jumps to a new scene.

The problem is I want to allow the user to come back to the landing but I would like to reset landing slide to its initial state when jumping from back button.

Any idea ? Thanks !

PJ

12 Replies
Alex O'Byrne

Hi PJ, 

Depends how you set the triggers for closing the doors, probably easiest to post the file up here, but if you have set it so that the doors are disabled, you could probably just trigger a change of state on all the doors to normal based either on a true/fasle variable for each of the doors (i.e. each door changes its variable to true/false when selected, then have an overall change state of trigger to make the doors state normal on condition that each of the 4 doors has been selected, triggered for the beginning of the timeline). or you could do a similar thing via states, but it depends how you set up the doors and course in the first place.

Alex

Pierre Jouan

Thanks for your answer Alex.

Door simply go to state disabled once clicked. I check their state on start and jump to next slide if they're all closed.

The problem is when I come back to this slide from elsewhere.

I could set a "resetLanding" variable and re-open each door when revisiting the slide but what I would like to trigger is either

jump to "landing" and reset "landing" to initial state 

or

set "resetLanding" to true and jump to "landing"  (on the other slide)

if "resetLanding" then reset "landing" to initial state (on landing slide)

Don't know if it's possible...

Pierre Jouan

Many thanks for your help !

Here's a stripped down version of the project.

When you've gone through all doors, it will move to next slide automatically.

The problem is you won't be able to try the doors again.

As you may see, when you come back from rooms, the doors slide plays from the start (I put the big sign on purpose !) but when you come from last slide, it won't play from start and does not reset variables !

Alex O'Byrne

Right, I got a bit confused with all the triggers and variables, but got there in the end, just made a few of my own up (sorry if it gets more confusing) working example - file attached.

Second time round the doors always stay open because I used a true/false variable, if you switched it out for a number variable and added +1  you could then trigger the doors reseting based on a alternating or trigger (if that makes sense) of odd or even numbers (as in reset on condition that revisit variable equals 1 or 3 or 5 or 7 etc).

Hope that makes sense? if you need any help with it just let me know.

This discussion is closed. You can start a new discussion or contact Articulate Support.