improvement(actor/player): let the friction slow down when hitting

This commit is contained in:
Kazhnuz 2019-08-01 12:43:27 +02:00
parent 24e7fe8ee8
commit c28375e497

View file

@ -38,8 +38,8 @@ function Player:updateStart(dt)
if self.keys["B"].isPressed and (self.onGround) then if self.keys["B"].isPressed and (self.onGround) then
self.action = "punching" self.action = "punching"
self.xsp = 0 --self.xsp = 0
self.zsp = 0 --self.ysp = 0
if self:getCurrentAnimation() == "hit1" then if self:getCurrentAnimation() == "hit1" then
self:changeAnimation("hit2", true) self:changeAnimation("hit2", true)