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();