Advice on animation needed

This forum is currently in read-only mode.
From the Asset Store
4 Block Soldiers with different animations, 400x400
  • 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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • Yay! Thanks, just what I needed

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)