How do I Fix This? (8-Direction Movement Bug)

0 favourites
  • 10 posts
From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • Hello everyone, I hope you're all doing great!

    I encountered an issue while making an 8-direction Character with Set Angle: No.

    I am not sure how to fix this at all.

    http://i.gyazo.com/375a9c65d4514813a9429ed4416198f0.png

    Note: UL-DR-UR-DL=UpLeft,DownRight,UpRight,DownLeft

    When I run the game and I press A+W the character runs the animation WalkLeft which is okay, but if I do not let go the W and I press D immediately, it remains with the animation WalkLeft when it should be WalkRight. This also happens the other way around.

    Any clue on how to fix this issue?

    Thanks and have a great weekend!

  • Bump >.<

  • Hey Nahuos,

    If you keep in mind that events run from top to bottom we can take advantage and keep things much simpler. Here is an example:

    https://db.tt/Y5zwE5VK

  • Hey Nahuos,

    If you keep in mind that events run from top to bottom we can take advantage and keep things much simpler. Here is an example:

    https://db.tt/Y5zwE5VK

    Hey GenkiGenga,

    Thanks for the response I really appreciate it. I had something very similar to what you sent me.

    The problem is that every time I tried to move with W and A at the same time, the animation that showed was either Up, Down, Left, or Right, but it only showed 1 frame. This made the character look like it was floating.

    If you use the Sprite of the archive you sent me. Add a second frame for each: Left Animation, Right, Down, and Up. You will be able to see exactly what I mean.

    Any clue?

  • Ah ok, I see what you mean. Have made a small adjustment to what I just posted. Let me know how you go.

  • Ah ok, I see what you mean. Have made a small adjustment to what I just posted. Let me know how you go.

    I think it really does work now! Thank you so much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No worries Nahuos, my pleasure. Looking forward to seeing your creation.

  • GenkiGenga

    I need help again! D:

    How do I make it so I also have UpLeft,UpRight,DownLeft,DownRight Idle and Walk animations? I'm not sure how to fix that.

    I came to the conclusion that the character will look better with those animations any idea?

    This would mean I would have 8 Idle animations and 8 Walk animations in total instead of repeating the Up and the Down idle and walk animations.

    Does this make sense?

    Thanks in advance

  • Hey Nahuos,

    https://db.tt/yQ9CBOeV Here you go. I don't have a lot of spare time today so I have just done UpLeft for you. Let me know if you have any troubles applying the same technique to the other directions.

  • GenkiGenga Thanks again, I will try and see how it goes I really appreciate your help again!

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