How do you cancel an animation in the middle and transition back smoothly?
I'd like to cancel an animation if a boolean value changes and return to the previous animation smoothly. Currently my animation jumps to start of the animation.
HI
Yes. The return animation, would the animation look backwards?
Currently I created a separate timeline to reverse it but I'm ok with it reversing the "truck leave" timeline.
It's something like this? I used a joystick for the animation and duration for the back transition.
Following this thread
The question I have though is how would you set it up so that it could be like Flappy Bird to have the truck stay in the white region without it having to go back to the very start pos? Wanting to hold and release the boolean with the pink button to see if I can have the truck stay within the white region. Thank u!
You could do it this way. Using the same animation (Play) where the truck leaves the white square, and the same trigger for the two transitions with duration and an interpolation.
Thank you JC! I will give this a try. Out of interest, are there any examples you know of in the community of a flappy bird type concept? Mainly using a boolean if held down, an item floats up...and if released, item sinks. Jetpack Joyride...or a submarine travelling along underwater?
That's exactly what I'm looking for, though I'm not clear on how using a joystick (I've never used one before) helps solve that.