I’m having some issues with storyboard. I’m trying to use storyboard to go to a results screen after the player dies. Right now I’m getting this error:
game.lua:184: function arguments expected near 'storyboard'
With this bit of code:
function monsterDeath () if monster.isAlive == false then local function onPlayBtnRelease() local sceneGroup = self:view storyboard.gotoScene( "results", "fade", 500 ) return true end local playBtn = widget.newButton{ label="Results", onRelease = onPlayBtnRelease } playBtn.x = 480 playBtn.y = 480 sceneGroup:insert( playBtn ) else end end
Line 184 is the “storyboard.gotoScene( “results”, “fade”, 500 )” bit.
Any help is appreciated, thanks!