Hi,
I have a sprite set to "set angle towards Mouse.X and Mouse.Y. How do I get the sprite to rotate within a range of degrees when following the mouse, for example 0 to 180 degrees, instead of the current 360?
Develop games in your browser. Powerful, performant & highly capable.
If angle(sprite.x, sprite.y, mouse.x, mouse.y) is between angles 0 and 180, set sprite angle towards mouse
Thanks, Noah1.