How do I make 8 direction animations (W/ 4 animations)?

0 favourites
  • 3 posts
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • This is my events list

    I have tried to make an animation for walking and staying work, but I have some issues.

    Let me explain the problem here, when pressing left and then up in the same time, it will go diagonal (naturally) and the animation is going to be the left walking one, but when I release the left key, the character is going up, yet the animation is going to be the Idle left animation, how can I fix this? I know 100% why this is happening, but I just don't see any way around it, even though I know there is one, and IF I had to make some black magic with HTML 5, then sorry, I only know C++ and putting codes in construct 2 is still something that I'm unfamiliar with.

    Another thing I tried is to make the animations play depending on the angle the sprite is moving, but it doesn't work at all.

    what's the problem here?

  • I normally set the animations based on the angle of movement, not the key presses.

    Check this example:

    [EDIT] Corrected some bugs in the file.

    [attachment=0:30c4mjzd][/attachment:30c4mjzd]

    Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I normally set the animations based on the angle of movement, not the key presses.

    Check this example:

    [EDIT] Corrected some bugs in the file.

    [attachment=0:cjczdb85][/attachment:cjczdb85]

    Cheers!

    Thanks a lot! I guess the problem with my second method were the values for the angles.

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