The 8 Direction Condition for Animation.

So I have a game where a ghost follows the mouse to be used to teleport over big obstacles. I have think so hard how to do it and I got a result but the update is late? (I think) I don’t know. Anyone care to help me implement a condition for it?

Here a sample of mine. (Uses the angle of Moving condition with tolerance function)\