1
Fork 0

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

This commit is contained in:
Jake Howard 2015-05-19 12:19:47 +01:00
parent b30a7c4ff0
commit e7687ded09
1 changed files with 3 additions and 1 deletions

View File

@ -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)