Hi there,
I have a simple platformer enemy that has a sine movement when set to idle and will chase the player when they get close enough. Im having issues getting the enemy to return to its start position after the player leaves its chasing distance. it seems to work fine when it returns from the left side of its start position but it wont return from the right, but instead goes straight to the idle sine movement wherever it is.