I've implemented your method and it's working very well, thanks a lot!
but I have a question, I'm trying to detect if the sprite is moving to the right, it will face to the right, if moving to left, face left, etc.
Is there a way?
before that I was comparing his angle to detect which direction he was facing but now he's always at the same angle so I have no idea how to do that.. I trying the within angle but not sure if it's the right choice..