Storyboard - Going to a 'random scene'

OK, it’s just a thought at the moment. I’m building a pretty simple quiz-app. It has a 2 player option… When this option is chosen, the Users are asked if they want to run a 10, 15 or 20 question round.

I’ve built the single player side as ‘one question per scene’, but that uses progressive-style gameplay (you answer as many questions as you can before you run out of lives etc - always picking the game up from the last question you answered correctly).

I’d like to build the ‘two player’ game, so it’s still one-question-per-scene, but when the game starts I’d like to somehow load ‘10’, ‘15’ or ‘20’ questions/scenes RANDOMLY from within the local directory… Can this be done? Has it been done? Is there a better way to do it?

Thanks muchly

Mark

At first thought i’d suggest Sqlite database.

But your ‘one question per scene’ comment requires explanation. Why? What things are common and what is different per scene?

With a database you can use unique index numbers associated to unique questions & the answers (incorrect/correct). So this can cover your text display objects “text” and will allow you to random select the unique index numbers.

If you have images the Db should still work (though have not done this myself) you just load the filename strings into the db associated to the unique index numbers.

End result is random select a number and then goto database get text and images associated with number then store those in variables and display in 'gameScene" rather than scene1,2,3,4,5……

Look up the sample app and do a google search on sqlite for tut’s/ code samples - but first thing would be looking at your multiple scenes and seeing what’s the same and what actually changes.

T.

At first thought i’d suggest Sqlite database.

But your ‘one question per scene’ comment requires explanation. Why? What things are common and what is different per scene?

With a database you can use unique index numbers associated to unique questions & the answers (incorrect/correct). So this can cover your text display objects “text” and will allow you to random select the unique index numbers.

If you have images the Db should still work (though have not done this myself) you just load the filename strings into the db associated to the unique index numbers.

End result is random select a number and then goto database get text and images associated with number then store those in variables and display in 'gameScene" rather than scene1,2,3,4,5……

Look up the sample app and do a google search on sqlite for tut’s/ code samples - but first thing would be looking at your multiple scenes and seeing what’s the same and what actually changes.

T.