I wonder if someone can help? I am wanting to get a true or false on whether a variable has increased or decreased, for instance a thumb's up shows if a score increases but changes state to a thumb's down if it decreases.
Does anyone have any idea how to do this in Storyline?
How is the variable being changed? By a button click? By some other trigger on another slide? If you can share your .story file here, I'm sure a community member will help you figure this out.
You should be able to do this by creating a number variable ( you could call it score or whatever you like). Then create a trigger set to Action: Adjust variable that changes your true/false variable to true on the condition that your new number variable (score) is greater or less than whatever number you want.
I am afraid I can't upload the actual course as there are security issues with that, but here is an example of what I want.
Clicking the yes button increases the score by 10, when it reaches 20 you get to the next "level" or achievement award, I want this acknowledged by a thumbs up, so when the score gets to 20 it is changes the state of the thumbs up from hidden to normal (up). However from then though if the score then increases to 40 the next level is achieved etc etc, but if the score goes back down to 20 (or any other level change threshold) I want the level to go back down and the thumbs up to change to thumbs down. I can do all of this but not get the thumbs down to go back down.
I think it does, yes! Many thanks Walt. I will need to make changes as my Level meter on mine is actually a change of image state, but I will just create another variable. MANY THANKS! (again)
ok.. so not quite, I think walt's one works on the fact that the triggers are in a certain order, I am using a thumbs up and down on a different (always active) layer as it is animated in the time line and uses that timing as a way of fading out. is there anyway to achieve this making the change across layers?
13 Replies
How is the variable being changed? By a button click? By some other trigger on another slide? If you can share your .story file here, I'm sure a community member will help you figure this out.
Hi,
You should be able to do this by creating a number variable ( you could call it score or whatever you like). Then create a trigger set to Action: Adjust variable that changes your true/false variable to true on the condition that your new number variable (score) is greater or less than whatever number you want.
Then add another trigger that changes the state of the button when your true/ false variable changes to true.
Hi Dave! Looks like you are getting some great assistance here :)
Hi All,
I am afraid I can't upload the actual course as there are security issues with that, but here is an example of what I want.
Clicking the yes button increases the score by 10, when it reaches 20 you get to the next "level" or achievement award, I want this acknowledged by a thumbs up, so when the score gets to 20 it is changes the state of the thumbs up from hidden to normal (up). However from then though if the score then increases to 40 the next level is achieved etc etc, but if the score goes back down to 20 (or any other level change threshold) I want the level to go back down and the thumbs up to change to thumbs down. I can do all of this but not get the thumbs down to go back down.
Does this help?
I think it does, yes! Many thanks Walt. I will need to make changes as my Level meter on mine is actually a change of image state, but I will just create another variable. MANY THANKS! (again)
Glad Walt was able to assist you here Dave and thanks for the update :)
ok.. so not quite, I think walt's one works on the fact that the triggers are in a certain order, I am using a thumbs up and down on a different (always active) layer as it is animated in the time line and uses that timing as a way of fading out. is there anyway to achieve this making the change across layers?
Thanks!
All variables are global, so this should work for any layer.
I renamed the state to avoid the built in down state, and it won't work if you click before the hand fades.
Great example, Walt -- thanks for sharing! :)
Ah great, I didn't realise you could call changes to object states that are in other layers, Brilliant!
Delighted to see you found the assistance you needed, David! Thanks for the update. :)
This discussion is closed. You can start a new discussion or contact Articulate Support.