Commit e7687ded authored by Jake Howard's avatar Jake Howard
Browse files

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

parent b30a7c4f
......@@ -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()
\ No newline at end of file
self.rect = self.image.get_rect()
self.set_position(x,y)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment