From c55bf67aa348c7f16e5fccf2f2153bc90910934c Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 18 Jul 2017 06:54:35 +0200 Subject: Respawning now resets salto and smoke flags in Hero's behaviour --- not/Hero.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/not/Hero.lua b/not/Hero.lua index 729826d..1c15588 100644 --- a/not/Hero.lua +++ b/not/Hero.lua @@ -287,6 +287,8 @@ end -- And then respawn. Like Jon Snow. function Hero:respawn () self.isAlive = true + self.salto = false + self.smoke = false self:setLinearVelocity(0,0) self:setPosition(self.world:getSpawnPosition()) -- TODO: I'm not convinced about getting new position like this. self:setBodyActive(true) -- cgit v1.1