From bd37d58b23062f7328cb0ce854091111ab928013 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 28 Dec 2019 21:06:41 +0100 Subject: [PATCH] fix: jump only the moment button is pressed --- sonic-bluestreak.love/game/modules/world/actors/player.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-bluestreak.love/game/modules/world/actors/player.lua b/sonic-bluestreak.love/game/modules/world/actors/player.lua index 5627ebd..b840bbc 100644 --- a/sonic-bluestreak.love/game/modules/world/actors/player.lua +++ b/sonic-bluestreak.love/game/modules/world/actors/player.lua @@ -32,7 +32,7 @@ function Player:updateStart(dt) self.xsp = 160 end - if self.keys["A"].isDown and (self.onGround) then + if self.keys["A"].isPressed and (self.onGround) then self.zsp = 280*1.33 end