This is probably something really simple but I'm trying to get an bullet type object to spawn with a set angle away from the player position.
I tried (-player.x, -player.y) but that does not work...
thanks!
Develop games in your browser. Powerful, performant & highly capable.
Simple angle(player.x, player.y, bullet.x, bullet.y) should work.
Perfect. Thanks!