Storyboard and modules

Hi!

I edited the scene.lua and the the_module.lua files to work like @emaurina suggests.
However, when I’ve returned for the first time to the menu and I try to enter again in the scene, this example craches.
I figured out when I call the scene.lua file (and this one calls the_module.lua file), the objects was created again, but seems it isn’t so.

What am I doing wrong? [import]uid: 44013 topic_id: 31605 reply_id: 126984[/import]

@alberto1,

Hi. One more reply… I just wanted to mention that in SSK I provide a utility for creating a set of groups that act as layers:

local layers -- Local reference to display layers   
...  
  
layers = ssk.proto.quickLayers( screenGroup,   
 "background",  
 "skylayer",   
 "scrollers",   
 { "scroll3", "scroll2", "scroll1" },  
 "content",  
 "interfaces" )  

The above call produces a set of groups, bottom to top, like this: \ (screenGroup) |--\ background |--\ skylayer |--\ scrollers |--\ scroll3 |--\ scroll2 |--\ scroll1 |--\ content |--\ interfaces
Later, I use the layers like this: display.newRect( layers.content, 0, 0, width, height ) display.newRect( layers.content, 100, 120, width, height ) ...

Finally, when I want to clean up I do this:

layers:destroy()  

This may not be the best description, but I am still working on docs and tutorials.

Cheers,
Ed
Roaming Gamer, LLC.
SSK for Corona SDK (github) (videos)

PS - Why Ed and not edo? Edo is Ed in Japanese, and Yes, there is more history to why I use that signature, but I think I should be consistent. If people look me up on my site or elsewhere, edo would just be confusing. So, back to Ed. :slight_smile: [import]uid: 110228 topic_id: 31605 reply_id: 127011[/import]

Hi Ed!

I appreciate your suggest, but I’m afraid I can’t now change to SSK in the project I am working.
I must solve the issue of removing the display objects I added to the group in the_module.lua

Alberto. [import]uid: 44013 topic_id: 31605 reply_id: 127087[/import]