How to implement scaled_image in the class itself to do without a variable?

How to implement scaled_image in the class itself to do without a variable?
class none(pygame.sprite.Sprite):
 def __init__(self):
pygame.sprite.Sprite.__init__(self)
 self.image = pygame.image.load(os.path.join(IMG,"ser.png")).convert()
 self.image.set_colorkey(BLACK_CELL) # bg made transparent
 self.rect = self.image.get_rect()

scaled_pawn = pygame.transform.scale(none().image (70, 70))
August 23rd 19 at 10:55
1 answer
August 23rd 19 at 10:57
Solution
self.image = pygame.transform.scale(self.image (70, 70))
Thank you! Is it possible to display several times the class itself in a loop? How it generally to show?
class repeat(pygame.sprite.Sprite):
 def __init__(self):
pygame.sprite.Sprite.__init__(self)
 self.image = pygame.image.load(os.path.join(IMG,"pawnBlue.png")).convert()
 self.image.set_colorkey(black) # bg made transparent
 self.rect = self.image.get_rect()
 self.rect.center = (225,225)
 self.image = pygame.transform.scale(self.image (70, 70))
- diego12 commented on August 23rd 19 at 11:00
I mean to display a class in a loop? don't really understand the issue. - tristin.Quigley26 commented on August 23rd 19 at 11:03
how to display the image 3 times with different coordinates? - diego12 commented on August 23rd 19 at 11:06

Find more questions by tags pygamePython