How can I make an animation end after a certain time? (The animation has more than one frame) #71
-
|
Well, I was trying to modify Sonic's bounce animation, however, the animation only ends if it only has ONE FRAME (the duration is like 48) if I add more than one frame to the animation, it starts to do infinite loops and so on. , the code that switches to the move animation when the spring impulse ends stops working, as the bounce animation will never end, so I wonder if I can make the animation last a certain time, so that it loops for a while sonic is still on the boost spring, but run out and switch to ANI_MOVE when the momentum ends (image_yscale). That's the problem: Sonic.The.Hedgehog_.Reinvented.2025-01-25.16-43-59.online-video-cutter.com.1.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Assuming you're attempting to make him do a falling animation when he falls, I'd say just make the falling and rising animations one and then change the way the animation is played via script. |
Beta Was this translation helpful? Give feedback.


Assuming you're attempting to make him do a falling animation when he falls, I'd say just make the falling and rising animations one and then change the way the animation is played via script.
Something like making the rising anim's duration longer and then letting it play normally; then once it gets to the falling anim, loop it on that frame and it'll stay. That's what I did for my fangame.