From 3cb6c61cac3b614f894e48bc69b662625b232086 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 10 Aug 2022 19:18:04 +0200 Subject: [PATCH] fix(plateform): us right function for hitboxes --- examples/scenes/gameplay/plateform/actors/player.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/scenes/gameplay/plateform/actors/player.lua b/examples/scenes/gameplay/plateform/actors/player.lua index 09ad23f..44a5422 100644 --- a/examples/scenes/gameplay/plateform/actors/player.lua +++ b/examples/scenes/gameplay/plateform/actors/player.lua @@ -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