How do you compare object 1 to see if it is in the same angle as object 2 so that I can change the animation according to the angle? In 8 directions ...
If you have some example capx, it will help me a lot!
Develop games in your browser. Powerful, performant & highly capable.
Use the system condition "Compare two values"
Your first value will be something like object1.angle and the other be something like object2.angle.
You may also want to check out the how do I FAQ for C2 that contains a lot of examples of implementations.
I think I remember one about the "Diablo" movement that should possibly apply to your current issue.
Also, see these tutorials:
scirra.com/tutorials/1117/animation-management-in-8-direction-games
scirra.com/tutorials/413/direction-based-sprite-animation