Storyboard - doesnt remove old scene ?

Hi geeks!

I am trying to implement a basic storybaord scene. 

main.lua calls  

storyboard.gotoScene (“Levels”, “fade”, 1000)

The screen doesnt show any change ! I am yet to implement the display of my “Levels” scene but have a basic template ready as per corona website. 

Still I am in the same main.lua scene :( 

Anything wrong that I am doing ?

regards,

joel

Did you put all of your display objects into the scene´s view? (e.g. “group” in the storyboard examples)

If you are unsure aout your implementation then please post a bit of your code as an example :wink:

Max / CineTek

Got the solution. 

I was doing this

function scene:createScene( event )

    local group = self.view    

    local mycrate = display.newImageRect(“crate.jpg”,60,60)

end

missed the 

group:insert(mycrate) after creating the mycrate

Thanks @CineTek !

No Problem :wink:

This is a common mistake when using storyboard/composer

Did you put all of your display objects into the scene´s view? (e.g. “group” in the storyboard examples)

If you are unsure aout your implementation then please post a bit of your code as an example :wink:

Max / CineTek

Got the solution. 

I was doing this

function scene:createScene( event )

    local group = self.view    

    local mycrate = display.newImageRect(“crate.jpg”,60,60)

end

missed the 

group:insert(mycrate) after creating the mycrate

Thanks @CineTek !

No Problem :wink:

This is a common mistake when using storyboard/composer