Forum Discussion
PeterKrass
3 years agoCommunity Member
Longer animation with states?
I'm trying to animate a pressure gauge. It's a very simple animation, the pointer needs to move from 0 to some value when the trigger event happens. What I'm trying to do is use a series of images a...
JudyNollet
3 years agoSuper Hero
Hi, Peter,
If it's a circular gauge, you could use a dial, and then adjust its variable to animate it. Or a slider would work for a linear look.
The attached file has a demo.
- It uses a dial, which is covered by a semi-transparent shape to prevent the user from moving it. (You could use a shape set to 100% transparency.)
- The triggers to adjust the value of the dial's variable are on 2 blank layers.
- Each layer adds 1 to the variable, which automatically moves the dial that much.
- This trigger has a condition so it won't run when the variable reaches the upper limit.
- Almost right away, another trigger then jumps to the other layer, which does the same thing.
- Both layers "Reset to initial state" when revisiting, so the triggers keep running as the program moves back and forth between the layers.
- Each layer adds 1 to the variable, which automatically moves the dial that much.