Storyboard

Well thanks,

I followed your instructions, there is no error, the screen just became black :frowning:

Post your code please.

No problem :slight_smile: But thank you for your try :wink:

@philipple.roubert, is that your main.lua or is it another scene file?

This is my main.lua file.
I didn’t tried it with my other scene files yet

I found the problem :slight_smile:

I just copied the whole code in an another file,

in main.lua I just wrote this: 

local storyboard = require "storyboard" storyboard.gotoScene("home")

Thank you for your help guys :slight_smile:

I’ll mark it solved when I finished the links between the scenes :wink:

Glad you found it.  While its technically possible to put scenes inside of main.lua, its very complicated and not really recommended practice.  main.lua should be where you init things like ads, system listeners, etc. and then jump to your first scene as you discovered above.

Sorry I’m a bit late, I wasn’t here this week :stuck_out_tongue:

local storyboard = require "storyboard" local scene = storyboard.newScene() -- forward declarations local bg function scene:createScene( event ) local group = self.view bg = display.newImage("background.jpg"); group:insert( bg ) end scene:addEventListener( "createScene", scene ) return scene

can you try and center your image?

bg = display.newImage(“background.jpg”);

bg.x = display.contentCenterX

bg.y = display.contentCenterY

It still doesn’t work :frowning:

Maybe my corona build is too old?
I never updated it, the terminal is showing any error.

Just showing me where the file sandbox is.

So what should I do?

my buid is the 2012 971

I just updated it, nothing much :frowning:

I tried this:

local storyboard = require "storyboard" local scene = storyboard.newScene() -- forward declarations local object1, object2 -- enterFrame event listener function local function onUpdate( event ) -- do something here end function scene:createScene( event ) local group = self.view object1 = display.newImage( "1.png" ) object2 = display.newImage( "2.png" ) group:insert( object1 ) group:insert( object2 ) end scene:addEventListener( "createScene", scene ) function scene:willEnterScene( event ) object1.isVisible = false object2.isVisible = false end scene:addEventListener( "willEnterScene", scene ) function scene:enterScene( event ) object1.isVisible = true object2.isVisible = true Runtime:addEventListener( "enterFrame", onUpdate ) end scene:addEventListener( "enterScene", scene ) function scene:exitScene( event ) object1.isVisible = true object2.isVisible = true Runtime:removeEventListener( "enterFrame", onUpdate ) end scene:addEventListener( "exitScene", scene ) function scene:didExitScene( event ) print( "This scene has fully transitioned out and is no longer the active scene." ) end scene:addEventListener( "didExitScene", scene ) return scene

From the tutorials on the ressources, also not working.

I don’t know why this happens,

could you please help me?

Thank you,

Philippe :slight_smile:

sorry I just wrote a post and it is complete nonsense!  Cant see how to delete…

also cant see why your code wont work.

No problem :slight_smile: But thank you for your try :wink:

@philipple.roubert, is that your main.lua or is it another scene file?

This is my main.lua file.
I didn’t tried it with my other scene files yet

I found the problem :slight_smile:

I just copied the whole code in an another file,

in main.lua I just wrote this: 

local storyboard = require "storyboard" storyboard.gotoScene("home")

Thank you for your help guys :slight_smile:

I’ll mark it solved when I finished the links between the scenes :wink:

Glad you found it.  While its technically possible to put scenes inside of main.lua, its very complicated and not really recommended practice.  main.lua should be where you init things like ads, system listeners, etc. and then jump to your first scene as you discovered above.