Advice on animation needed

For questions about using Classic.

Post » Wed Mar 10, 2010 3:22 pm

Hi there,

I like to know if and how this is possible in Construct. I want a character to walk to the right if the player presses the right arrow and if he then presses the left arrow the character should turn an then walk to the left. Sounds easy. But how to I implement the turning animation?
I thought of something like
if pressed left and walking to the right then
change playersprite to turn to left
if turn to left is finished (how do I detect this?)
walk to the left

Hm does that make clear what I mean? It is a general problem with all transitions between different movements for example the same when the character is running ans then should stop (he shouldn't stop in an instant but make one or two stopping steps with his feet)
Thanks for any advice on this!
B
2
G
2
Posts: 22
Reputation: 694

Post » Wed Mar 10, 2010 5:45 pm

Try the "On animation finished" trigger condition.

PS - To make it work properly, you will have to uncheck "Loop" on the animation. If it loops then the animation will never finish.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Thu Mar 11, 2010 8:26 am

Yay! Thanks, just what I needed :)
B
2
G
2
Posts: 22
Reputation: 694


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests