Can I stop an animation loop in a "soft" way?

0 favourites
  • 3 posts
From the Asset Store
15 loopable and soft rain ambiences, specially designed to make your projects sound relaxing
  • I would like to tell an animation that is currently running to stop AND run until its finished.

    I have a talk animation that is played as long as the according speech file is playing. Once the speech file stops, the animation stops as well. I use the "stop animation" command for that.

    It stops the animation, but then stays on the current frame, which looks weird when it hits a frame in which the character has their mouth open. I can do a "hard reset" by setting the animation frame to 0, where the mouth is closed, but that looks jarring, since the animation is not arriving smoothly there.

    There is a "repeat to" setting in the animation, but I guess that is not used when the animation is stopped with "stop animation".

    Is there any way to stop the animation in a smooth way, maybe by disabling the "loop" property in the code? If that is possible, I haven't found the command.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi.

    How about we do it the other way around.

    Uncheck the Loop checkbox in the animation settings. The character started to talk you start the animation and on the end trigger restart it if the conversation is not over (I used just a variable).

  • I will try that, thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)