How do I rotate a sprite towards the mouse and move it?
问题 I'm confused by the fact that in my code the sprite's coordinates don't seem to change where it is. Putting (200, 200) would be the same as putting (900, 100000). So basically i cannot coordinate the sprite in a designated position. Can you help? Turning credits to Ann Zen But the sprite problems on me Pygame sprite not turning accordingly to mouse My code: import pygame from math import atan2, degrees # tank = pygame.image.load('Sprite0.png') wn = pygame.display.set_mode((400, 400)) class