fix(plateform): us right function for hitboxes
This commit is contained in:
parent
eec43a522e
commit
3cb6c61cac
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ function Player:updateStart(dt)
|
|||
end
|
||||
|
||||
if (self.isPunching) then
|
||||
self:checkHitboxesCollisions()
|
||||
self:applyHitboxesCollisions()
|
||||
end
|
||||
|
||||
if self.keys["start"].isPressed then
|
||||
|
@ -87,7 +87,7 @@ function Player:setDirection(direction)
|
|||
if direction ~= 0 then
|
||||
direction = utils.math.sign(direction)
|
||||
self.direction = direction
|
||||
self.sprite:setScalling(direction, nil)
|
||||
self.sprite:setScallingX(direction)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue