From 3a367ebe6ab3d9b466b91448070850d51c26bc1a Mon Sep 17 00:00:00 2001 From: ntr Date: Sat, 15 Dec 2018 12:45:31 +1100 Subject: [PATCH] flip x --- client/src/scenes/combat.cryps.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/scenes/combat.cryps.js b/client/src/scenes/combat.cryps.js index 59bbc340..9e42f2d6 100644 --- a/client/src/scenes/combat.cryps.js +++ b/client/src/scenes/combat.cryps.js @@ -131,6 +131,8 @@ class CrypImage extends Phaser.GameObjects.Image { super(scene, crypAvatarX, crypAvatarY, 'aztec', `sprite${Math.floor(Math.random() * 19) + 1}`); this.setScale(0.5); + if (!team) this.flipX = true; + // Save position and cryp details this.scene = scene; this.iter = iter;