@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. [import]uid: 110228 topic_id: 31605 reply_id: 127011[/import]