1 decade ago by dkollmann
I am currently trying to hide a layer in the game which does not seem to work by just changing its visibility. What would be the easiest way to do this?
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
ig.BackgroundMap.inject({ visible: true, draw: function() { if (!this.visible) { return; } this.parent(); } });
ig.game.backgroundMaps
array) just turn visible off.bg.visible = false;