Any way to link scenes together? Quiz/flash card game question
cedearman
Member Posts: 2
I am making a flash card-type quiz game where the question appears, then the player clicks a "flip card" button and the answer appears. My issue is this: I figured out how to randomize the scenes, but how do I keep each question scene linked to its answer so that the randomizer always goes to a question card and then when the "flip card" button is pressed it moves to the corresponding answer card? It seems like I either need to link each question scene to its answer scene, or find a way to morph the question card into its answer once the "flip card" button is pressed. I hope that makes sense.
Any help with this?
Any help with this?
Comments
create a note an assign each question & answer combination to a number from 1 to whatever
then have off-screen a control with timer to select random #
[Rule] when next question is selected
--changeAttribute card# To: random#
I would have one Scene; one Actor for question/answer (there was a demo for card flip... required 5 images in animation sequence: 1 start; 1 for ¼ turn; 1 for ½ turn; 1 for ¾ turn; 1 end)
you would need a boolean game.Attributes for card (set up when card is false show answer when card is true show question; you could probably eliminate the flip button and just initiate flip with touch on card)
back to Index
on your Actor
[Rule] when card= 1 (true)
[Rule] when card# = whatever the index in your note #
--changeImage to show question for that #
[Otherwise:]
[Rule] when card# = whatever the index in your note #
--changeImage to show answer for that #
yuck I would do a demo... but don't want to bother with the gfx...
ambitious project... try to get one card to work the way you want.
good luck!
MH