scenes/boost: add a jump dash
This commit is contained in:
parent
b8f0d57a8a
commit
0172f131de
1 changed files with 7 additions and 0 deletions
|
@ -154,6 +154,13 @@ function Character:jumpAction()
|
||||||
self.isInAerialAction = true
|
self.isInAerialAction = true
|
||||||
self.canAerialAction = false
|
self.canAerialAction = false
|
||||||
end
|
end
|
||||||
|
elseif self.data.stats.jumpaction == "jumpdash" then
|
||||||
|
if (self.keys["A"].isPressed) and (self.isJumping) and (self.canAerialAction) then
|
||||||
|
self.zspeed = 60 * 1
|
||||||
|
self.xspeed = math.max(self.xspeed, self.data.stats.spd * 60 * 1.2)
|
||||||
|
self.isInAerialAction = true
|
||||||
|
self.canAerialAction = false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue