Hey guys,
I've been trying to get a Sprite to face the general direction it's moving as it moves along a pathfinding path.
Initially when I was just using a simple sprite I just used Mirror based on the X location of the touch. But for some reason I can't use Mirror successfully with objects that are pinned together.
I've hooked up a test space below, and sometimes the base sprite will face the correct location but in other cases it will keep facing one direction until you define a second path.
dropbox.com/s/djutuim7u7km99z/Puppet%20Movement%20Test.capx
I was hoping to have a solution that kept track of the X position as it moved along the path but it flips like crazy, probably something is happening every tick but i'm not sure what.
Is there a solution I can use to iterate through the nodes? For instances where the pathfinding causes the sprite to double back on itself along its new path.
Any help would be much appreciated :)