Why is my colliderect() not working correctly?
Why is my colliderect() not working correctly? Question: Collision reacts to nothing, as if the platforms have shifted to the right. I am using it for the first time, so I would like an answer with an additional explanation… def collision(self, j): self.player_rect = pg.Rect(self.playerx, self.playery, player_w, player_h) for i in range(len(self.platfsx)): if self.player_rect.colliderect(pg.Rect(self.platfsx[i], self.platfsy[i], …