Need help with overlay Scene

I have an “Intro” scene with a camera that has the following logic bricks…
Always sensor—AND—Add Overlay Scene

When launched the overlay scene is displayed as expected but when I navigate to another section and then back to the Intro, the overlay scene does not show up.

Also, is it possible to have more than one overlay scene displaying at a time?

I am using 2.41 but willing to use some cvs version if necessary.

It is possible to have more than one overlay, just make sure each one has its own camera (linking cameras for overlay scenes can lead to crashes).

How do you navigate from one scene to the next? I once had a similar problems: these are possible causes:

  • You do not resume the scene that is supposed to load the overlay (if it was suspended). Note that a scene cannot resume itself - you have to to it from an active scene.
  • You have an object linked from a suspended scene in the scene that is linked to the intro. I solved my navigation problems by adding a scene containing an empty. The empty receives messages, and depending on the message body loads / removes scenes, or add / remove overlays.

This flowControl scene is then added to each main scene as an overlay. You then link up logic bricks in every scene to send the correct message to the empty. This ensures the empty is never accidentally suspended (i.e. part of a suspended scene), and with some scripting you can make this very general so that you can have messages that say “switch,myNewCurrentScene,myNewNextScene” without having to modify either the script or logic on the empty, and get the desired action.

Hope this helps.

You have to remove a scene (with the RemoveScene part of the Scene logicbrick) before it can be added again.

@herman

The first scene is an “intro” animation that plays until a mousedown to which I have a Set Scene: “interact” and a Remove Scene: “intro” connected. I use Set and Remove to navigate back and forth from scenes. Overlay scene is used for a menu.

I use linked objects because I have the camera rotating around the product in the intro then the user can explore the product features using a menu. Selecting a feature Sets a new Scene which animates the camera for a closer look, and brings up some informative copy. Clicking the mouse takes you back to the menu – “interact” scene. The interact scene successfully Sets the menu overlay scene but will not set the additional overlay scene (which has a single user camera and text object plane.)

I really like your idea of using an empty for scene navigation. This will take a little thought for me to excecute but I see its value. Thanks for the idea!

@toomai
Ah yes. Makes sense but here’s the confusing part. Nowhere do i Remove the “menu” overlay screen. When we go from intro–>interact, the interact scene adds the menu as an overlay. When we navigate from interact–>[feature], via a menu selection, I Remove interact but not menu… and the menu shows up when we navigate back to interact<–[feature]. I am a little new to BGE so I’m a little confused.

Basically, what I want to do is have a watermark/copyright that appears throughout the demo.exe.

Sorry for not posting a blend as it’s a commercial project.