How to make a scene layered ontop of another scene.
ElDalton
Member Posts: 21
Hi, I saw this video where somebody had a separate scene with an inventory on it, when they clicked the inventory button it switched scenes.. however it didn't take up the whole screen and you could still see the game scene behind it. How did he accomplish this? When making a new scene, it seems to complete cover up the old scene. Thanks!
Comments
They used the Pause Game behavior. It overlays another scene and then when the game is unpaused, it removes the overlay.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Got it, but in that case say I click the inventory button and it opens the inventory, but it also has other buttons that stich the scene to other screens such as stats, quests, etc. How do I make it so it switches between the scenes while keeping the main game still paused in the background? Thank you!
You can pause it as many times as you want(from what I have done). But you'll have to have an unpause button too.
When I click the inventory button it opens the inventory, but when you click the tabs to switch to the different screens (scenes) it keeps the inventory scene still open in the background and pauses that scene too. Any simpler way?
You could use a boolean? So, this is how I am thinking: game.Paused boolean or integer. In the pause scene have the button that you want to change to the stats scene have rules like this:
when touch is pressed
:do:
change attribute game.Paused to 1
(timer-after-.001 :do: unpause game)
Then have one of your actors in the unpaused scene have a rule that says:
if game.Paused = 1
:do:
pause game-show scene-stats
Then in your stats scene, in your back button, have a rule that says:
when touch is pressed
:do:
change attribute game.Paused to 0
(timer-after-.001 unpause game)
. You can't have more than one scene at a time everything is scene based in GS. To do what you want you would have to incorporate all that stuff on one scene.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Say you need 4 "Screens". Just create a Massive Scene (say 2 x 2) and move the camera when you need to go to a different "Screen" to show the area that has been navigated to. Clunky but it will work !