Browse Source

updated bug when resetting player image. It sent you to origin and you lost instantly

master
Jake Howard 6 years ago
parent
commit
e7687ded09
  1. 4
      player.py

4
player.py

@ -37,5 +37,7 @@ class Shooter(pygame.sprite.Sprite):
self.set_position(x,y)
def reset_image(self):
x,y = self.rect.x, self.rect.y
self.image = pygame.transform.scale(self.texture.get_texture("PLAYER"), (self.width, self.height))
self.rect = self.image.get_rect()
self.rect = self.image.get_rect()
self.set_position(x,y)
Loading…
Cancel
Save