I have two
y tilemap positions. (A player and a chest the player wants to find.) I want to get the angle between these two tilemap positions.
All I know is that I need to do something like:
tan(angle) = (chest_x - player_x) / (chest_y - player_y)
I need to find
angle. (Degrees preferably, because I want to make a compass)
Does anyone have code or an idea on how to get
angle out of the equation I supplied? Or am I completely wrong?