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.xspeed = math.max(self.xspeed, self.data.stats.spd * 60 * 1.2)
|
||||||
self.isInAerialAction = true
|
self.isInAerialAction = true
|
||||||
self.canAerialAction = false
|
self.canAerialAction = false
|
||||||
|
self.dashCam = true
|
||||||
|
self:addTimer("dashCam", .5)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -173,6 +175,7 @@ function Character:normalAction()
|
||||||
self:addTimer("action", .5)
|
self:addTimer("action", .5)
|
||||||
self:addTimer("action_cooldown", 1)
|
self:addTimer("action_cooldown", 1)
|
||||||
self.dashCam = true
|
self.dashCam = true
|
||||||
|
self:addTimer("dashCam", .5)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -503,6 +506,7 @@ function Character:endedTimer(name)
|
||||||
self.bonus = 0
|
self.bonus = 0
|
||||||
elseif name == "action" then
|
elseif name == "action" then
|
||||||
self.isInAction = false
|
self.isInAction = false
|
||||||
|
elseif name == "dashCam" then
|
||||||
self.dashCam = false
|
self.dashCam = false
|
||||||
elseif name == "action_cooldown" then
|
elseif name == "action_cooldown" then
|
||||||
self.canAction = true
|
self.canAction = true
|
||||||
|
|
Loading…
Reference in a new issue