Hello everybody, I have recently posted that I don't understand why is my background grey when I turn into the illustrations mode, making the layers invisible and deactivating all instance before that. But I have just found out that my layers are not turning invisible. SO why doesn't this work?:
So, if you wonder how it looks, I've attached screenshot:
And also, I have tried making this alternatively which also doesn't work and outputs this into log: "layer_set_visible() - could not find specified layer in current room"
Code to achieve this error:
And the output on the screen is totally same by the way. Help me please. I just can't understand why doesn't it work
GML:
layer_set_visible("Background",false);
layer_set_visible("Tiles",false);
layer_set_visible("Trees",false);
And also, I have tried making this alternatively which also doesn't work and outputs this into log: "layer_set_visible() - could not find specified layer in current room"
Code to achieve this error:
GML:
var _background = layer_background_get_id("Background");
var _tiles = layer_tilemap_get_id("Tiles");
var _trees = layer_background_get_id("Trees");
layer_set_visible(_background,false);
layer_set_visible(_tiles,false);
layer_set_visible(_trees,false);
Attachments
-
136.7 KB Views: 13
Last edited: