From 0172f131de5439d35316c51193a08dd89dba478e Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 4 Feb 2019 23:19:13 +0100 Subject: [PATCH] scenes/boost: add a jump dash --- .../scenes/subgame/sonic-boost/actors/character.lua | 7 +++++++ 1 file changed, 7 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 6792aa6..1193943 100644 --- a/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua +++ b/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua @@ -154,6 +154,13 @@ function Character:jumpAction() self.isInAerialAction = true self.canAerialAction = false 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