Hey all,
I’m pretty new to corona, and while I’ve made great headway into my game, with a great menu and start of first level, I’ve run into a problem I’m having trouble with regarding scene changes using the storyboard API,
I’m unsure of what I’m doing wrong but I have a problem where first my menu was bleeding into my first level, then I managed to get that to stop by using “removeSelf()”
I add these two layers like so
backgroundItems = self.view
menu = display.newGroup();
in my menu I exit like this currently :
function scene:exitScene( event )
print("Exit:scene:exitScene")
menu:removeSelf()
end
if I remove the menu:removeSelf() it’ll appear in my level. if I leave it, if I return to my menu the menu is gone… backgrounditems group comes and goes as it should though,
All works like it should if I use
menu = self.view
backgroundItems = self.view
but then I can’t slide my menu around as I’d like, the whole scene moves…
I figure it’s because I’ve added it as a group, because of the way my menu works, 1 layer basically floating above another layer, and onpress the menu slides back and forth to different areas
so basically I’m looking for the proper way to add groups, and remove them between scenes… because clearly I’m missing something
Any help in the right direction here would be appreciated, I’m likely doing something pretty stupid but as I said, new to lua and corona 
[import]uid: 157863 topic_id: 30254 reply_id: 330254[/import]
the problem was I wasn’t sticking my “group” into my main view as a child