Layer above sub app problem
In my game I'm using a sub app in the first frame as the game level. I created a new layer above the sub app, but all actives and events don't register at all or are visible. So then I decided to create another sub app to place on top of the first sub app. It's visible, but events still do not register at all.
Is there any way to have a layer above a sub app that works?
Re: Layer above sub app problem
Generally, as subapps are in reality their own windows, you cannot layer things on top of them. Sometimes with "Display as Sprite" checked it can work- but this makes other things work.
If you put another subapp on top of it, and for the newer subapp check the option "Popup Window", that should make it display and update in the proper order.
Re: Layer above sub app problem
Hmm. Tried Popup Window on the new subapp and the events still don't work. It's not a big deal, I can work around it. It will just take some tinkering.
Re: Layer above sub app problem
What kind of events aren't working in that subapp?
You won't be able to get "Player presses button" events to work in a subapp, because those events aren't triggered unless the window has focus (normal events should work fine).
Generally speaking, you'd want to use the windows control object to make sure your 'main' window has focus whenever anyone clicks on the other subapps, and then use events in the main window to pass global values or strings to the subapps that tell it what to do when you press a button
IE:
(In main window):
"Upon Pressing CTRL Key":
"Set Global String H to 'Widget'"
(In Subapp):
"Global String H == 'Widget'"
"Do Stuff"
"Set Global String H to ''"
Re: Layer above sub app problem
Just a note, if you don't share global values between the main app and the sub app, you can get and set the global values in the sub app from the main app. This is much more useful in some cases. ;)