I'm working a simple game in which I have some mobs that wander in a random direction for a random amount of time. For this I applied a custom movement behavior and and use the "Change speed towards angle" with the speed set to a global variable and angle is "random(360). This part works great and does what it needs to do. The problem that I am having is trying to figure out how to change the animation based on the direction of the enemy on the X axis ( a simple left or right). I don't know how to perform a check based on direction.
I tried to search for a solution to this, but I'm no programmer I don't know the proper terminology to even search for, so if there is a post about this already, I apologize and help whatsoever will be greatly appreciated.
Thanks