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: 21
Reputation: 242

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.
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

Image
B
19
S
9
G
158
Posts: 2,404
Reputation: 84,435

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: 21
Reputation: 242

Post » Mon Jan 15, 2018 10:56 am

@ssaamonn
Your link is not working.

Here is what I meant:
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

Image
B
19
S
9
G
158
Posts: 2,404
Reputation: 84,435


Return to How do I....?

Who is online

Users browsing this forum: MrSkailo and 8 guests