Making Layers appear or disappear?
wiltermuthgames@gmail.com
Member, PRO Posts: 11
Just wondering if i can make a rule to make a whole layer appear or disappear. The game i'm making has multiple huds, and it would make my life extremely easier if i could just make the different huds on a layer disappear or appear with a simple rule. Anyone know if this is possible?
Comments
I'm afraid there is not built in hide/show layer behavior. If you want to do that you'll need to do it manually by hiding and showing each actor as needed.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
You could use a boolean that says if LAYER1 is true(this is showing) :do: change attribute self.Alpha 1 :else: change attribute self.Alpha to 0 and so on and so on with the others.
ok thankyou