• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

layer_background_visible not showing layer

V

Voloda2

Guest
I want to show background layer. I have some layers. I found my layer.
layer_background_visible(__backid, 1)
__res = layer_background_get_visible(__backid)
I checked res and res = 1
But layer didn't showed on screen.

Documentation
Note that this is dependent on the layer visibility, and even if the background element is flagged as visible, it will not be drawn if the layer it is on is flagged as not visible.


How can I check that root layer visible too?
 
V

Voloda2

Guest
layer_get_visible works well
May be you know why don't work layer_background_visible(__backid, 1) ?
 

TheouAegis

Member
I think all that does is tell the game to show the background, it doesn't tell it to show the layer that background is on.
 
Top