So I am trying to use blit a sprite in Pygame. It was working before, but now it has stopped working after I had made it possible to rotate. Here’s the piece of code that should help:
rotated_player = pygame.transform.rotate(player, player_angle)
new_player_rect = rotated_player.get_rect(center = player.get_rect(topleft = topleft).center)
screen.blit(rotated_player, new_player_rect)
screen.blit(rotated_player, (465, 600))
I don’t know what the problem is, but the two bottom ‘blit’ lines won’t blit anything. It doesn’t throw an error at all. Thanks in Advance.
Source: Python Questions