Pygame sprite not turning accordingly to mouse [duplicate]
问题 This question already has answers here : How to rotate an image(player) to the mouse direction? (2 answers) How do I rotate a sprite towards the mouse and move it? (2 answers) Closed last month . Ive been trying and trying, but basically i wanna make a tank game which has a tank that can turn itself by the mouse to fire bullets; when you turn your mouse to a direction, the sprite will follow exaclty. Problem is, i cant turn the tank with any code, no matter what; been spending hours (no joke)