0

I keep getting an attribute error "AttributeError: 'str' object has no attribute 'convert'" whenever I try to load in my sprite image.

This is how the aforementioned line looks

self.image = pygame.transform.scale(pygame.image.load('assets/R1.png').convert_alpha(), (45, 80))
self.rect = self.image.get_rect()
tripleee
  • 158,107
  • 27
  • 234
  • 292
LGGawd
  • 1
  • 1
    The error message *"AttributeError: 'str' object has no attribute 'convert'"* is not caused by the code which you've provided. – Rabbid76 Jun 17 '21 at 13:16

0 Answers0