scenes/boost: better dashCam timer
This commit is contained in:
parent
0172f131de
commit
1506701559
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue