diff options
author | Aki <nthirtyone@gmail.com> | 2017-07-18 06:54:35 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-07-18 06:54:35 +0200 |
commit | c55bf67aa348c7f16e5fccf2f2153bc90910934c (patch) | |
tree | 19f1b5db90475da637596bdcf6087292079328c4 /not/Hero.lua | |
parent | 0774fe93cb125e2b3d37904b2c32f9e490d432f7 (diff) | |
download | roflnauts-c55bf67aa348c7f16e5fccf2f2153bc90910934c.zip roflnauts-c55bf67aa348c7f16e5fccf2f2153bc90910934c.tar.gz roflnauts-c55bf67aa348c7f16e5fccf2f2153bc90910934c.tar.bz2 |
Respawning now resets salto and smoke flags in Hero's behaviour
Diffstat (limited to 'not/Hero.lua')
-rw-r--r-- | not/Hero.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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) |