Any way to link scenes together? Quiz/flash card game question

cedearmancedearman Member Posts: 2
edited November -1 in Working with GS (Mac)
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?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    I wouldnt have the question card and answer card for the same question on differnt scenes. Just make the scene size bigger put the answer card offscreen to the right of the question, then when you want to switch to a answer you can move the camera over or move the answer card into the scene, whatever way you want to do it.
  • MotherHooseMotherHoose Member Posts: 2,456
    on a project such as this I would create an Index type game.Attribute...name card#

    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
  • cedearmancedearman Member Posts: 2
    Thanks so much! These are both excellent ideas for a fix. Much appreciated.
Sign In or Register to comment.