Turning Animation

0 favourites
  • 4 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Hello,

    So I'm making a Platformer for a class and I'm using an Alucard spritesheet for my character. He has a hitbox which all movement mechanics are tied to. I'd like to apply a turning animation for when he switches directions (or switches from mirrored to not mirrored and vice versa). I'm having difficulty programming this. Any suggestions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    So I'm making a Platformer for a class and I'm using an Alucard spritesheet for my character. He has a hitbox which all movement mechanics are tied to. I'd like to apply a turning animation for when he switches directions (or switches from mirrored to not mirrored and vice versa). I'm having difficulty programming this. Any suggestions?

    better if you post a sample .capx

  • When you press the button to change the direction. Start the turning animtion.

    When the turning animation finishes you can set the regular animation, and flipped.

    You can use the "On finished" condition to check when the turning animation has finished.

    Hope that helps.

  • When you press the button to change the direction. Start the turning animtion.

    When the turning animation finishes you can set the regular animation, and flipped.

    You can use the "On finished" condition to check when the turning animation has finished.

    Hope that helps.

    This is the first way I'd go about it - it will also look smoother (animations will blend together better, most likely).

    You could use a boolean system for a change in animation, but you could also use velocity.X of the player character to work out when to trigger or finish the animation.

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