How can I get a 2D texture to rotate like a compass in XNA?
- by IronGiraffe
I'm working on a small maze puzzle game and I'm trying to add a compass to make it somewhat easier for the player to find their way around the maze. The problem is: I'm using XNA's draw method to rotate the arrow and I don't really know how to get it to rotate properly. What I need it to do is point towards the exit from the player's position, but I'm not sure how I can do that.
So does anyone know how I can do this? Is there a better way to do it?