Storyboard Doesn't Like credits.lua

When I was using storyboard.gotoScene(), my Corona kept crashing. My code was okay (storyboard.gotoScene(“credits”, “slideLeft”, 500)), and I couldn’t figure out the problem.

Because I’ve had this problem before, I knew it couldn’t be something I did. I experimented by changing my credits.lua to test.lua, and believe it or not, it worked.

Here’s my question. Why doesn’t storyboard.gotoScene() work if the file you’re trying to go to is called credits.lua? [import]uid: 103624 topic_id: 20099 reply_id: 320099[/import]

Nothing is going to like credits.lua because there is a Credits API call used to do offers for in game coins.

You can’t use “credits.lua” just like you can’t use “physics.lua” or “scene.lua” or anything else that matches a Corona SDK API that you “require” to use.
[import]uid: 19626 topic_id: 20099 reply_id: 78528[/import]

^ Postfixing your scenes with “Scene” will stop this problem. so

“menuScene”
“gameScene”
“creditsScene”
etc [import]uid: 79135 topic_id: 20099 reply_id: 78539[/import]