Timeline for Pygame surface rotation, rect rotation or sprite rotation?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 29, 2012 at 20:17 | comment | added | ali_goes_oosh |
so have a self.position attribute and reset it when you rotate the image: self.rect.center = self.position
|
|
Nov 29, 2012 at 19:32 | comment | added | pmoleri | The get_rect() of the image (surface) only returns its dimensions, it's always located at (0,0), it's not located anywere. You should use sprite class to keep track of the image position. | |
Nov 29, 2012 at 19:22 | history | answered | TheMeaningfulEngineer | CC BY-SA 3.0 |