Here is where my error jumps onto the screen. With this message: self.rect = self.image.get_rect() AttributeError: 'list' object has no attribute 'get_rect' Because im trying to make a sprite
rigto = [pygame.image.load("img/Iconos/guy1.png"), pygame.image.load("img/Iconos/guy2.png"), pygame.image.load("img/Iconos/guy3.png"), pygame.image.load("img/Iconos/guy4.png")]
class Player:
def __init__(self, x, y, image):
self.image = image
self.rect = self.image.get_rect()
self.rect.x = x
self.rect.y = y
jugador1 = Player(500, 500, rigto)