improvement(actor/player): let the friction slow down when hitting
This commit is contained in:
parent
24e7fe8ee8
commit
c28375e497
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue