From cdf4023928d3ed6e8ddfdd38b3dfcd0f7a06a12f Mon Sep 17 00:00:00 2001 From: Alexis Faizeau Date: Thu, 14 Oct 2021 17:32:27 +0200 Subject: [PATCH] Change character depth to 0 --- front/src/Phaser/Entity/Character.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Phaser/Entity/Character.ts b/front/src/Phaser/Entity/Character.ts index 3cdc60dc..17bb6a27 100644 --- a/front/src/Phaser/Entity/Character.ts +++ b/front/src/Phaser/Entity/Character.ts @@ -107,7 +107,7 @@ export abstract class Character extends Container { this.setSize(16, 16); this.getBody().setSize(16, 16); //edit the hitbox to better match the character model this.getBody().setOffset(0, 8); - this.setDepth(-1); + this.setDepth(0); this.playAnimation(direction, moving);