Help with setting up variables please!
Sep 13, 2013
Hi,
I am having trouble with setting up a variable that makes a button appear once the user has clicked on all of the sections of the slide.
Ideally, once the user has clicked on all 3 sections of the triangle a continue button will appear, but I am unsure on how to set this up using triggers, variables and conditions. I have tried to create another layer for the button so that I could set up a variable to show or hide the layer, depending on whether the user has clicked all of the sections or not, but I have no idea how to go about this.
Has anybody got any advice on how to do this?
Thanks!
Sophie
11 Replies
See attached file. The three colored parts of the triangle are separate objects that each have a Visited state. The Continue button's initial state is Hidden. All you need is one slide trigger that changes the Continue button's state to Normal if the state of all three triangle parts are Visited. Hope that helps.
Hi Michael,
Thanks so much for your help. I will give this a go!
Sophie
Looks like Michael is helping you out here Sophie, so just let us know how that solution works for you and if you need anything further.
Thanks Michael!
Hi Michael,
I have set up the triggers now but each section of the triangle is meant to open a new layer of the slide and for some reason this is no longer working with the other triggers in place. I put a button on each section instead of a text box is so that I could change the states of them and then added triggers to those so that they change to 'visited' when the user clicks on them. I then copied the trigger for the continue button that you sent me and repeated all of these triggers onto each layer of the slide. However, now the triggers to open the new layers aren't working when I preview the slide.
Do you have any idea where I may have gone wrong?
Thanks again,
Sophie
Thanks Leslie, I am having a few problems as you can see from my post above so please let me know if you think there is something I have missed too!
Sophie, would you be able to share your .story file so that we can have a look?
Please find it attached Leslie. It is slide 1.3 that I am working on.
I have managed to sort out the problem of the triggers not working, but I now cannot get the continue button to appear when it should.
Thanks!
Hi Sophie
I have tried a different approach. Instead of visited state, I have created 3 variables(initial value=false) and placed hotspots on fire, heat and oxygen each. Upon clicking, I am showing the respective layer and also making the respective variable true. Also, the initial state of 'Continue' button is hidden. Making the state normal when all the 3 variables are true. Attached is the updated .story file.
Feel free to ask in case of doubt.
Thanks Dipti - I was looking at this just before lunch, and you beat me too it. Works perfectly.
Hi Dipti,
Thank you so much for that, it does work perfectly!
Thanks to everyone for their help on this, think I have finally got it working.
Sophie
Thanks for the update Sophie
This discussion is closed. You can start a new discussion or contact Articulate Support.