From d27c9c3e0ea1d34b6ef749183dc6e68fcca216b1 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 14 Feb 2018 15:38:02 +0100 Subject: [PATCH] Update: CC - Bacon - Entity Loaded (2xswm1bwq8.js) 204 bytes modified --- 2xswm1bwq8.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/2xswm1bwq8.js b/2xswm1bwq8.js index 7fc7ac0..c6e68c7 100644 --- a/2xswm1bwq8.js +++ b/2xswm1bwq8.js @@ -1395,6 +1395,9 @@ GameLib.CustomCode.prototype.createTile = function(tileName, imageName) { ) ) + this[tileName].visibile = false; + this[tileName].updateInstance('visible'); + /** * Remove this tile from the 'meshes' so it is treated like a clone and doesn't get stored */ @@ -1419,9 +1422,6 @@ GameLib.Event.Emit( this.createTile('tile_flames_small', 'image_flames_small'); - this.tile_flames_small.visible = false; - this.tile_flames_small.updateInstance('visible'); - this.tile_flames_small.materials[0].transparent = true; this.tile_flames_small.materials[0].updateInstance('transparent'); @@ -1430,9 +1430,6 @@ GameLib.Event.Emit( this.tile_flames_small.geometry.updateInstance('width'); this.createTile('tile_glow', 'image_glow'); - - this.tile_glow.visible = false; - this.tile_glow.updateInstance('visible'); this.tile_glow.materials[0].transparent = true; this.tile_glow.materials[0].updateInstance('transparent'); @@ -1456,9 +1453,6 @@ GameLib.Event.Emit( this.tile_bacon_disappearing.materials[0].color.fromHex('#3e1d1d'); this.tile_bacon_disappearing.materials[0].updateInstance('color'); - this.tile_bacon_disappearing.visible = false; - this.tile_bacon_disappearing.updateInstance('visible'); - this.drawGrid(); this.drawStatus();