Rotating image to mouse problem (Solved)
I'm making a tower defense game that is going to shoot a laser at a monster but I'm having a hard time aiming the tower towards the monster. I've been looking around for a code that will make this work but the only one i've found is "Math.toDegrees(Math.atan2(yEnd-yStart,xEnd-xStart))" and this is not working for me. The tower is rotating to much.
Here is a video demonstation: http://www.youtube.com/watch?v=muaQj...ature=youtu.be
Any help would be appreciated!
Take away Math.toDegrees made it work :D