From 1506701559acf704c45bceab2b3eb85bf3bdd732 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 4 Feb 2019 23:23:49 +0100 Subject: [PATCH] scenes/boost: better dashCam timer --- .../scenes/subgame/sonic-boost/actors/character.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua b/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua index 1193943..ec10776 100644 --- a/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua +++ b/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua @@ -160,6 +160,8 @@ function Character:jumpAction() self.xspeed = math.max(self.xspeed, self.data.stats.spd * 60 * 1.2) self.isInAerialAction = true self.canAerialAction = false + self.dashCam = true + self:addTimer("dashCam", .5) end end end @@ -173,6 +175,7 @@ function Character:normalAction() self:addTimer("action", .5) self:addTimer("action_cooldown", 1) self.dashCam = true + self:addTimer("dashCam", .5) end end end @@ -503,6 +506,7 @@ function Character:endedTimer(name) self.bonus = 0 elseif name == "action" then self.isInAction = false + elseif name == "dashCam" then self.dashCam = false elseif name == "action_cooldown" then self.canAction = true