Jun-30-2022, 04:47 PM
I'm likely just blind, but I can't find the reason my pygame sprite image (which is just a pygame.Surface) is a solid, filled square that grows and shrinks rather than rotates. Rather, it is rotating and the rect is growing and shrinking as it rotates, which is good, but I only see a box that changes size. It seems to rotate the the image then fills the resulting rect with the image's fill colour.
Do I have a typo? There aren't and extra
Thanks in advance.
self.original_img = pg.Surface((50, 50))
self.original_img.fill((100, 55, 10))
self.rect = self.original_img.get_rect()
self.image = self.original_img
#### then....
self.image = pg.transform.rotate(self.original_img, self.rot)
self.rect = self.image.get_rect()
#### then....
screen.blit(self.player.image, self.player.rect) Do I have a typo? There aren't and extra
fill()s or anything else that I can see impacting the image. I missed the focused frustration of coding, but this is pretty simple for me to be stuck on lol.Thanks in advance.
