0

I have just started learning pygame and I'm trying to make a simple pong game. I load this image and scale it down to 20% of original size (the image was too big).

   self.image = pygame.image.load("assets/pads/sprite_1.png").convert()
   self.image = pygame.transform.rotozoom(self.image, 0, 0.2)

When I try to move the pad, it leads to glitches in the animation. But it happens only when I scale this image down to 20% or less. I think scaling the image is causing this error. Any thoughts on why is this happening and how I can make it work?

The_spider
  • 1,202
  • 1
  • 8
  • 18
  • Can you provide full code? – Ansh Feb 26 '22 at 11:33
  • without minimal working code which we could copy and run we can't say what makes problem. BTW: if it possible then I would rather create smaller images in some Image Editor and load only small versions. And if you really have to scale in code then you could do it only once and keep in other variable or on the list/dictionary (if you have more images) – furas Feb 26 '22 at 17:35

0 Answers0