I am copying an image in pygame and drawing it in a for loop and i need to get all of their rects and i'm unsure of how i can go about this? Is there a way to get the rects while the image copies are being drawn? ```python import pygame import src.functions.image as image import src.functions.file as file file_system = file.file_system() class player: def __init__(self,surface): self.surface = surface self.image = pygame.image.load(file_system.get_settings()["player_skin""idle"]) self.image_scaled = pygame.transform.scale(self.image,(75,75)) self.image_rect = self.image_scaled.get_rect() def draw(self): self.image_rect.midbottom = self.surface.get_rect().midbottom self.image_rect.centerx -= 150 self.image_rect.centery -= 60 for s in range(4): self.image_copy = self.image_scaled.copy() self.image_copy_rect = self.image_copy.get_rect() self.image_copy_rect.midbottom = self.image_rect.midbottom self.image_copy_rect.centerx += 100 * s self.surface.blit(self.image_copy,self.image_copy_rect) ```
Anyone know how i can do this?