Forum Discussion
SeanPowell
4 years agoCommunity Member
Trigger for an increase or decrease in a variable question.
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 ge...
MariaCS
4 years agoStaff
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:
- Assign TempVariable = Dial1 when the timeline starts.
- Move the rectangle to the right when Dial1 > TempVariable (Dial moved to the right, so rectangle moves to the right)
- Move the rectangle to the left when Dial1 < TempVariable (Dial goes left, and so does the rectangle)
- Once the movement finishes in either direction, TempVariable updates its value, so it equals Dial1 (Set TempVariable to variable Dial1 when the animation completes).
This is what it would look like:

I hope this helps!
Related Content
- 8 months ago
- 11 months ago