Trying to set the animation of an object based on the direction that it is moving in the bullet direction.
project: dropbox.com/scl/fi/95wia4pjcjpkc018w9e1g/demo.c3p
Image of current function that is not working:
Expected behavior: angles -45 to 45 would set it to the "up" animation, 45 to 135 "right". etc. etc.
Current behavior: Is setting to the incorrect frames on the incorrect angles, as well as just flat out ignoring the idea of the left direction.
Develop games in your browser. Powerful, performant & highly capable.
You need to use "Is between angles" or "Is within angle" condition. Not "Is between values".
"Is within angle" is easier, for example: Is within 45 degrees of 180
This worked, thank you!