Basically created an idle animation through events and added a way for it to work with touch/mouse input. When TouchInput is pressed I reset the idle timer and move the character to the new destination. I have to use setDestination as there was a bug with using TouchInput to update the idle animation and moving the character with the same press.
It seems to be an issue with bigger maps and when I setDestination for a new position it makes the character go to the new position correctly but the character pingpongs for a second or 2 in the new destination. Attached is the small code snippet. It doesn't occur at all in the top left area of the map just other quadrants.
Not sure if anyone has insights on .setDestination and what could be happening.
It seems to be an issue with bigger maps and when I setDestination for a new position it makes the character go to the new position correctly but the character pingpongs for a second or 2 in the new destination. Attached is the small code snippet. It doesn't occur at all in the top left area of the map just other quadrants.
Not sure if anyone has insights on .setDestination and what could be happening.