scenes/boost: add a jump dash

This commit is contained in:
Kazhnuz 2019-02-04 23:19:13 +01:00
parent b8f0d57a8a
commit 0172f131de

View file

@ -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