Hey, I am looking for a way to take a HORIZONTAL compass. As in one which is a horizontal bar with N, S, E, W, which rotates with the players(cameras) direction.
Note the compass on top of the mini map.

I have been struggling to get this working and I just cant figure out how to go about doing it. This is what I got so far, and it kinda works but its not working properly.
compass_pos.x = 996.75 - ((1329/100) * (abs(camera.pan%360) / (360/100)));
If anyone has any idea how I can do this it would be most appreciated.