Im New To Pygame But Kinda OK On Python, Im Creating A Zombie Shooting Game With an overhead view.
I managed to make the character move when pressing the arrow keys. But now i need to get the player to FACE the mouse/cursor without clicking the screen all the time.
Any Help?
Im New To Pygame But Kinda OK On Python, Im Creating A Zombie Shooting
Share
[1] – How to Find the Angle Between Two Vectors:
http://www.euclideanspace.com/maths/algebra/vectors/angleBetween/index.htm
Your image may lose quality when rotated at a small angle. It’s discussed in Pygame documentation page: http://pygame.org/docs/ref/transform.html#pygame.transform.rotate