Pathfinder direction

0 favourites
  • 3 posts
From the Asset Store
A short demo of template sold on store, with formations on end of way for no overlaps.
  • I am using pathfinder to move my character in an isometric game. But I need to mirror the character depending on the direction he is walking. Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My game is not isommetric but a point and click, but here is how I did: I had the pathfinding behavior attached to a dummy invisible sprie and the character animation sprite pinned to the dummy, pinned by position only, no rotation. Then for the pathfinding behavior, make sure the "rotate object" property is set to yes.

    Then in the event sheet, I test if the dummy is moving along the sprite and as subevent, I test its angle. If it's between -45 and +45, I set the animation to right. if between 46 and 135, animation to bottom. Between 136 and 225, animation to left (or mirrored right), and if between -134 and -46, animation to top.

    You can see i in acion here

  • I guess that will do the trick. I am already using a dummy sprite to control the character. Thank you so much. =]

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