Trying to go to a results screen on character death.

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!

I think line 183 is the issue.  Try commenting it out.

Rob

I think line 183 is the issue.  Try commenting it out.

Rob