Transition Animations

Get help using Construct 2

Post » Tue Nov 06, 2012 4:53 pm



I was wanting to add some transitional animations to my character for things like him changing direction. The example above is when he's flying to the right and turns to the left, I want to trigger and animation. I have a number of situations like that in my game, but am not sure how to go about implementing it.

Any help is greatly appreciated.

Ben
B
40
S
11
G
6
Posts: 228
Reputation: 6,951

Post » Tue Nov 06, 2012 7:27 pm

There is an action for an animation called "is playing" that allows to you check if a specific animation is playing currently on a sprite.

You need to set up several "what if" checks to determine when to play what animation.

eg: on keyboard "left" pressed
(sub event) if flying right animation is playing -> play "turn left" animation
(else)
play left flying animation
move character to left etc....
...
.

This way any time your player is flying right and the left button is pressed, it plays a transition that turns him around. (only if he is currently flying right) otherwise, he will just go left.

same goes for all other situations he might come across
justifun2012-11-06 19:29:04
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Tue Nov 06, 2012 7:39 pm

That is awesome. Can't wait to try that out. Thank you so much for your help.
B
40
S
11
G
6
Posts: 228
Reputation: 6,951

Post » Fri Nov 09, 2012 4:43 pm

Thnks for response.. was searching for this one.
B
12
S
3
G
1
Posts: 10
Reputation: 792


Return to How do I....?

Who is online

Users browsing this forum: Matthew de and 27 guests