Calling different animations in a sprite

Get help using Construct 2

Post » Mon Mar 04, 2013 3:59 pm

Hi,

I have imported 2 different sets of animations in a sprite. How do I call the different animations to start and stop playing in the event sheet? The default animation keeps playing and I haven't been able to find any tutorial on how to overcome this. Can anyone tell me how to do this step by step?

Thanks! :)
B
9
Posts: 44
Reputation: 570

Post » Mon Mar 04, 2013 4:56 pm

Hey,

If your sprite keeps playing, it is set to "Loop" - you can disable this in the animation setting bar to your left.

If you want to start an animation in your game on a given time, do like this:

[CONDITION] If something happens - [ACTION sprite] set animation to ""

You can also set the animation to loop and then stop the animation when you want; then the event ^ will look like this:

[CONDITION] If something happens - [ACTION sprite] set animation to ""
[ACTION] Wait X seconds - Stop animation

Its very simple but if this sounds advanced you should get another one to help you out better than me lol

Sry for bad english.
B
5
Posts: 55
Reputation: 585

Post » Mon Mar 04, 2013 5:10 pm

Hi!

Thanks for your reply. I can't find the looping that you mentioned to disable for the sprite. I will try your suggestion for the event sheet. I am using a free edition of Construct 2. Don't know it that will help much..
B
9
Posts: 44
Reputation: 570

Post » Mon Mar 04, 2013 5:35 pm

When you double click on your sprite look to the left, and you will
see animation speed and looping options.

P.S. Also check out the manual it is very handy!
B
15
S
4
G
4
Posts: 28
Reputation: 3,732

Post » Mon Mar 04, 2013 5:39 pm

Hi!

Thanks for the tip! I found the looping. :)
I came across this link: https://www.scirra.com/manual/115/sprite
but not sure how it can help me in this. Still looking through tutorials and forums though. Do you know of any good tutorials which I can refer to? :)

Thank you!
B
9
Posts: 44
Reputation: 570


Return to How do I....?

Who is online

Users browsing this forum: Axiomaltd and 25 guests