Loading the next set of ?s in a quiz app

Newbie Question here. So newb I’m almost embarrassed to ask.

I’ve accomplished a lot in my first app attempt so far. Displayed a bunch of random objects to the screen. Detected when the “correct” one for that “round” was touched. Displayed some feedback for that touch event… good stuff!

However I’m stumped on one simple thing…

How do I then, gracefully, pause for a second, wipe the screen, and then load the next set of random objects from the array? I would do this after every round.

I’m mainly asking about the wipe the screen, and load everything again question.

I’m guessing I will basically need to remove the objects, and then call the main function that loaded the random objects in the first place again?

Thanks for any help! I am using director.lua and I suspect some of the transitions will be useful if it means I’m going to need to load a new scene.

Thanks again all [import]uid: 191855 topic_id: 34581 reply_id: 334581[/import]

Can you tell us a bit more about your app? Are you using Storyboard or Director to manage scenes?
[import]uid: 199310 topic_id: 34581 reply_id: 137525[/import]

Thanks for the reply – I am using Director to manage scenes with this app.
[import]uid: 191855 topic_id: 34581 reply_id: 137553[/import]

What I would do to keep things simple is to have a scene that you goto in between rounds. In my trivia game, I do something similar. If they get the question right I do the equiv of director.changeScene(“correct”). I have a wrong and a timeout scene too. Those scenes then go back to the game scene and do another round.
[import]uid: 199310 topic_id: 34581 reply_id: 137558[/import]

Thanks, that helps me conceptually figure out what I need to do. Much appreciated. [import]uid: 191855 topic_id: 34581 reply_id: 137601[/import]

Could someone point me to an in depth tutorial on how scenes work in general, and also on how to use scenes with director.lua? Any help appreciated! [import]uid: 191855 topic_id: 34581 reply_id: 137706[/import]

Director is a scene manager. You basically create different .lua files following a specific format that Director expects (same with our Storyboard…) and you call director.gotoScene(“someluafile”) and Director will load your new lua file, put all the assets together, transition it to the screen then destroy the old scene.

There should be plenty of tutorials available on this. [import]uid: 199310 topic_id: 34581 reply_id: 137776[/import]

Can you tell us a bit more about your app? Are you using Storyboard or Director to manage scenes?
[import]uid: 199310 topic_id: 34581 reply_id: 137525[/import]

Thanks for the reply – I am using Director to manage scenes with this app.
[import]uid: 191855 topic_id: 34581 reply_id: 137553[/import]

What I would do to keep things simple is to have a scene that you goto in between rounds. In my trivia game, I do something similar. If they get the question right I do the equiv of director.changeScene(“correct”). I have a wrong and a timeout scene too. Those scenes then go back to the game scene and do another round.
[import]uid: 199310 topic_id: 34581 reply_id: 137558[/import]

Thanks, that helps me conceptually figure out what I need to do. Much appreciated. [import]uid: 191855 topic_id: 34581 reply_id: 137601[/import]

Could someone point me to an in depth tutorial on how scenes work in general, and also on how to use scenes with director.lua? Any help appreciated! [import]uid: 191855 topic_id: 34581 reply_id: 137706[/import]

Director is a scene manager. You basically create different .lua files following a specific format that Director expects (same with our Storyboard…) and you call director.gotoScene(“someluafile”) and Director will load your new lua file, put all the assets together, transition it to the screen then destroy the old scene.

There should be plenty of tutorials available on this. [import]uid: 199310 topic_id: 34581 reply_id: 137776[/import]