Trigger for an increase or decrease in a variable question.
Dec 08, 2021
I am looking for a way to do this....
I have an object on a screen that I want to have 2 motion paths hooked to. One path for when a variable gets bigger and the other for when the variable gets smaller. This variable is hooked to a dial.
So when the dial goes up I want the object to go up incrementally and vice versa for when it goes down.
So I assume the triggers would look something like this
"move object along path x when variable increases"
"move object along path y when variable decreases"
But I can't figure out how to get the statements written in storylines templates.
Anyone have any ideas?
PS I can't use states because I will have multi directional triggers by the end and that will end up being thousands of states and even more triggers to join them all.
2 Replies
Hi, Sean.
I'm looking forward to the suggestions you will receive from the community!
One suggestion would be to create a temporary variable that will receive the value of the Dial to compare which one is higher. I tested this with a couple of motion paths with relative starting points:
This is what it would look like:
I hope this helps!
Sean,
Here's an option with two slides, that works much like Maria's. One slide moves the object one time no matter how much the dial moves. But I think what you really want is the other, that moves the object as many times as the amount of change in the dial.