I have my little guy set to go along and when he hits the finish object, I set it to do “storyboard.gotoScene( “end” )”. There is a file named ‘end.lua’ and I do have it create its own scene (local scene=storyboard.newScene() ). The only problem is that it doesn’t go to the scene and this comes up in terminal:
May 10 14:46:21 joshua-places-mac-mini.local Corona Simulator[24800] : CGImageCreate: invalid image size: 0 x 0.
May 10 14:46:21 joshua-places-mac-mini.local Corona Simulator[24800] : CGContextDrawImage: invalid context 0x0
May 10 14:46:21 joshua-places-mac-mini.local Corona Simulator[24800] : CGBitmapContextCreateImage: invalid context 0x0
ImageIO: CGImageDestinationAddImage image parameter is nil
ImageIO: CGImageDestinationFinalize image destination does not have enough images
WARNING: Failed to find image(oldscene.jpg)
Runtime error
?:0: attempt to index a nil value
stack traceback:
[C]: ?
?: in function ‘?’
?: in function ‘gotoScene’
/Users/joshuaplace/Desktop/Games/Yoom/level1.lua:112: in function
?: in function <?:215>
[import]uid: 147322 topic_id: 26162 reply_id: 326162[/import]