Making a storyboard scene as a popup

I've found out there is a way to make a storyboard scene as a "popup" over another scene such that you can still see the underlying scene.

All you have to do is when you call the popup:

1
storyboard.gotoScene("popupmenu")

Cool things you can do include placing a black rectangle over "gamescreen" with alpha 0.5 to give the effect that the screen below the popup is darkened out, making the popup menu stand out more. Put this in the "exitscene" of "gamescreen"

Also make sure to disable event listeners because buttons, etc. will still be pushable if they are visible around the popup menu.

Here is an example (just a simple test):

Thanks for sharing!

Cheers,
Rodrigo.

Very useful!

Is there any sample code out there that show this approach?

views:1612 update:2012/2/8 8:46:10
corona forums © 2003-2011