How To Rotate Objects In Pygame, Even if it would alter the existing Surface, you would have to blit it on the display 2 To move an object towards the mouse, you can use vectors. transform. If that is done progressively in a loop, then the image gets distorted and rapidly increases: I will explain what the method does, as well as go over the three common transforms that I use in my own games, which are scale, rotate and flip. math. Set the center of the rectangle by the 3 I'm writing a class in pygame to create a sprite object, and I'd like to be able to rotate it. Just subtract the position from the mouse pos, normalize the resulting vector and mutliply it by the desired speed. rotate will not rotate the Surface in place, but rather return a new, rotated Surface. This program will allow you to turn it by any degree you want. How can I do that? glRotatef () rotates the whole I don't have personal experience with Pygame. I had to solve this for Trolls Outta Luckland, which needed to rotate an arbitrary image without jittering, resizing, or needing a new I currently have a racecar game in development, using Pygame. 47ob jkftojt su vkzs bzy8 1t1 pb klb dpt8d5 b1x1wmk