Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by ansimuz

Hi

Is there a way to toggle visibility of a background layer during game?

For example i have a layer named "secret" i would like to hide it when an event occur.

Cheers

1 decade ago by dominic

BackgroundMaps actually have an enabled property that is used by the debug module to toggle visibility.

ig.game.getMapByName('secret').enabled = false;

1 decade ago by ansimuz

Thanks that will do it.
Page 1 of 1
« first « previous next › last »