How do I stop an animation after it's current cycle?

Get help using Construct 2

Post » Mon Jan 15, 2018 9:42 am

I've got an sprite animation that runs alongside my character running.

When he stops running, I need this other animation to stop, but only after it completes it's cycle.

Is this possible?

So, basically, upon key release, animation continues and then stops once it's complete.
B
4
Posts: 20
Reputation: 240

Post » Mon Jan 15, 2018 9:53 am

You can set Loop=No in animation and add this event:

Sprite On Animation "foo" finished
Character is animation "Run" playing -> Sprite start "foo" animation play from beginning


This will restart animation only if character continues to run.

Instead of Character is animation "Run" playing you can use "Character Platform is moving" or "Keyboard Right is down" or a similar condition.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
127
Posts: 1,767
Reputation: 67,855

Post » Mon Jan 15, 2018 10:08 am

Sorry - I'm a little confused. Here's what I have:

https://imgur.com/EglNuQv
B
4
Posts: 20
Reputation: 240

Post » Mon Jan 15, 2018 10:56 am

@ssaamonn
Your link is not working.

Here is what I meant:
Image
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
127
Posts: 1,767
Reputation: 67,855


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests