From c28375e497ebcc8198aaadfce97393335899a0af Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 1 Aug 2019 12:43:27 +0200 Subject: [PATCH] improvement(actor/player): let the friction slow down when hitting --- sonic-radiance.love/game/modules/world/actors/player.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-radiance.love/game/modules/world/actors/player.lua b/sonic-radiance.love/game/modules/world/actors/player.lua index dbd5a42..2e7cfbe 100644 --- a/sonic-radiance.love/game/modules/world/actors/player.lua +++ b/sonic-radiance.love/game/modules/world/actors/player.lua @@ -38,8 +38,8 @@ function Player:updateStart(dt) if self.keys["B"].isPressed and (self.onGround) then self.action = "punching" - self.xsp = 0 - self.zsp = 0 + --self.xsp = 0 + --self.ysp = 0 if self:getCurrentAnimation() == "hit1" then self:changeAnimation("hit2", true)