[Solved] Pygame (Python) – TypeError: Argument must be rect style object [closed]


Try this code:

rb = pygame.image.load('redblock.png')

rbrect = rb.get_rect()
rbrect.topleft = (0, 0)
rb1rect = rb.get_rect()
rb1rect.topleft = (40, 0)
rb2rect = rb.get_rect()
rb2rect.topleft = (80, 0)

solved Pygame (Python) – TypeError: Argument must be rect style object [closed]