8-Direction Movement Collisions

This forum is currently in read-only mode.
From the Asset Store
Character Sprite Pack: Walk 4 Directions made in illustrator
  • I'm making a simple SNES-like RPG.

    I've loaded in my main character sprite, animations, etc.

    I'm using the 8-direction movement behavior for control, but I'm having a problem with collisions. This is a little hard to explain but I'll try.

    Whenever I collide with a box object, but I'm not facing the object, my character stops. I can move away just fine, but If I try to face the object, my character get's stuck on the current animation and won't turn to face it.

    I've tried including a keyboard object and then creating an event so that when my character speed is 0 and the up character is pressed then set the animation to facing up. But when I do this, the character looks up for a split second and then turns back to facing away.

    Is there some option with the 8-direction behavior to make my character face the right way when against a solid box object?

    Please let me know if the description was confusing and I'll try to explain it better.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • WhyBotherShaving seen your post, and I had been planning to make an example on this for you but haven't found the time. I'll hopefully have a solution for you soon though <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Okay, had some time to throw something together and here's the example: https://dl.dropboxusercontent.com/u/4714446/8Dir.cap

    What I did is disable the behavior from changing animation frames, and set it from events (I used the Control Is Down event as it always will match the keys you set in the project properties that way).

    Hope that helps!

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