Change state of object during animation path

May 01, 2024

Hey there!

Would there be a way of changing the state of an object while an animation is happening (motion path) and resume to its original state when it finishes?

Thank you!

 

9 Replies
Nedim Ramic

You can assign another motion path to an offscreen object and alter the object's state based on the timing of the offscreen object's motion path. Video demonstration attached. I'm not familiar with your interaction setup so I'm simply suggesting potential solutions based on my understanding at this point.

Mariana Escárzaga

Thanks Nedim!

I'm trying that option but I might be triggering something wrong. 

Let me share with you a sample of my motion path without any triggers or any additional elements, so you could possibly work on it. The idea is that the dog state changes to "run" when the motion path is happening. It should do it every time the motion path plays.

 

Nedim Ramic

Please find the attached .story file and take a look. It can be adjusted to increase or decrease the speed of the dog's movement. This can be controlled by changing the motion path of an offscreen rectangle, or both. The first slide displays the repetitive motion path, resembling a loop animation. The second slide is based on the relative start point, as in the original file.

Walt Hamilton

Judy’s method would work. It doesn’t matter where the object is, you can change its state. It will not move without a trigger, and you can duplicate that trigger, and change “move” to “change state”. Just put the state change first.  You can have a large list of triggers that fire as a result of the same action, even “when timeline starts”.