Animating Player Controlled Sprite

0 favourites
  • 10 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • I got Sprites to animate on their own and they work perfectly. Except for Custom Movement, it's not the Sprite movement that's an issue, it's the animation.

    I have when Custom Movement > 0 Start Animation

    and

    When Custom Movement = 0 Stop Animation.

    Without this code, the spirte loops the animation. How to make it so it only loops when moving, and stops looping when speed = 0?

  • In this case I would do two separate animations.

    One for idle and 2nd for moving.

    So you can set as following:

    • Custom movement > 0 Set animation to "moving"
    • Custom movement = 0 Set animation to "idle".
  • I will try that thank you. I tried that and found Start Animation and Start Animation " ", which one should I use?

    I see a Start Animation and Start Animation with a " " as well.

  • Help please. I see the Start animation and end animation, but no way of connecting custom movement to animation.

  • Oh boy. Way over thinking this. Let me run to my computer and show you how it's done.

    Edit: Does this help?

  • The words in quotes, that's what I can't find. Animation "down", etc. The sprite has two animations, 0 and 1. No mention in animations or sprite editor as to what the animations are named, it's just 0 and 1.

  • Phoenixbowman

    In the sprite editor, on the right hand side you will see an Animations Window. Right click and select Add Animation. Name it whatever you want. That is where I name my animations, "Right", "Left", and so on.

  • Phoenixbowman

    In the sprite editor, on the right hand side you will see an Animations Window. Right click and select Add Animation. Name it whatever you want. That is where I name my animations, "Right", "Left", and so on.

    Oh, thank you! I was looking at the bottom of the Sprite Editor where it shows the different sprites. I've been using that tab along the bottom for animations lol. For non-custom movement, it works beautifully. I set the Animation speed and set it to loop, and when sprites move on their own they animate perfectly.

    For the player character though I'll use the Animation window to the left. THank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I got two animations, 1 frame per animation I tried both Custom Movement > 0 set animation, didn't work. I tried when holding down arrow keys and still nothing. I did set animation to " " both for current and at beginning.

    Still nothing Im sorry I dont get it at all. I even gave a second animation to one of the Frames, and moved it left, both with Custom Movement > 0 and pressing keys, nothing. the code says if custom movement > 0, set animation play from current and beginning.

    Then I tried holding down arrow key, and the same code of Set animation to " ", both for current and play from beginning. Nothing still

  • I tried the code that people mentioned and its not still not working i tried differetn frames, different animation names, etc. still not animating when Player uses keyboard input to move the sprite

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