[Resolved] Prioritizing stages

My project has two main stages: a Puzzle stage, and a Settings stage that slides in on top of it, using the “fromBottom” option.

This works perfectly, until I try to create a new puzzle. I seem to be deleting the old puzzle images properly, and the new puzzle looks good, but when I click to visit Settings again, it slides in underneath the puzzle instead of over it!

I thought I might be able to get around this by adding this to the Settings stage:

[lua]function scene:willEnterScene( event )
local group = self.view

storyboard.stage:remove(group)
storyboard.stage:insert(group)

end[/lua]

I thought that would make the Settings group a higher screen priority, but it doesn’t seem to work. What should I be trying instead? [import]uid: 117162 topic_id: 29012 reply_id: 329012[/import]

Never mind – I had some redundant code I needed to remove and that fixed it. Thanks! [import]uid: 117162 topic_id: 29012 reply_id: 116766[/import]

Hah, that was fast :wink:

Marking as resolved, thanks for updating! [import]uid: 52491 topic_id: 29012 reply_id: 116858[/import]