I'm new to game development. Trying to move an object in pygame. The same code seems to work fine with my friend on a windows and I am using a Mac. Moving the object seems to affect the background. Not sure what I'm doing wrong here. Any help is appreciated.
This is from the movement function in the object class
if self.prevPos:
self.parent_screen.blit(self.bk, self.prevPos)
self.prevPos = (self.x, self.y)
self.bk.blit(self.parent_screen, (0, 0), (*self.prevPos, SIZE, SIZE))
self.parent_screen.blit(self.image, (self.x, self.y))
pygame.display.update()