Jump to slide AND reset its state ?
May 22, 2014
By
Pierre Jouan
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
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
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...
Don't know if I've got the right end of the stick but this example closes the door as you go along and when you get to the 4th closed door it jumps to the next slide but when you return to the door choice it reopens the doors, is that the sort of thing your looking for?
Yep, that's it !
How many triggers ?
All in the file - trigger wise, wasn't too bad, I did it in a slightly convoluted way, I think you could simplify slightly, but it does what you need it to, any problems just let me know.
Thanks, I'll do the same for mine !
Well, it should work but... for some reason, my "doors" slide doesn't really replays (i can see it with the seekbar).
It goes back to where the slider was and thus does not trigger "when timeline starts" actions...
Don't know what's happening.
If you can post it up do so and I'll take a look?
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 !
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.
Many thanks for taking time to solve my problem, it works now !
Sorry, I could have cleaned up triggers and rename variables.
I managed to solve the "door always open" problem by simply resetting the revisit variable right after it's been used !
Ah that's great news and much more simple than what I envisaged! About the triggers and variables, I didn't get confused because of yours, I meant that I got confused by my triggers - I looked at your file, fiddled then went for lunch came back and got lost, but all's well that ends well!
This discussion is closed. You can start a new discussion or contact Articulate Support.