Help with creating a Quiz game

butterbeanbutterbean Member Posts: 4,315
edited November -1 in Working with GS (Mac)
So I'm trying a new genre of gaming, and it's already proving to be difficult

This is just a sample of a question, but basically, I'm trying to create a multiple choice quiz type game, and you have 4 pictures, let's say 4 different types of fruit, apple, orange, banana, and grapes.

The question is: Which fruit has the most Vitamin C

Answer is apple

So far I've created 2 boolean attributes:

Game.AnswerIsTrue and Game.AnswerIsFalse

I have under the orange icon (correct answer)

When any conditions are valid: actor receives event, mouse button is down:

Change attribute: Game.answer To: TRUE

Then I have a separate actor controller that I dragged into the scene (invisible)

And it has these rules:

When an attribute changes: Answeriscorrect is : True

Display Text: Great job!

Timer: After 5 seconds:

Change scene: Go to scene 2 (level 2)

Well that works just fine!

The problem is that I tried creating a boolean attribute Game.AnswerIsFalse, and tried to apply that to the other fruits as an incorrect answer, and it doesn't work

I basically put these rules under the other fruits (wrong answers)

Whem mouse button is down, Change attribute: Game.Incorrectanswer to: True

and under the scene editor, did an attribute changes, game.incorrectanswer is true

Display text: Game over! and change scene to initial scene

But it doesn't display game over, it displays the text, Great Job!

What am I doing wrong?

Do I need to create different attributes

Any help is appreciated if anyone has attempted this genre of gaming!

This one's for you Quantum! :) Or JGary!

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    They are all seeing the mouse button down event. You need mouse position over condition as well. And please keep these types of questions in the Game Design Support forum. (There is a drop down box "Pick a section:" right under the text input box)
  • butterbeanbutterbean Member Posts: 4,315
    Even so, this doesn't work, even adding the mouse over condition.

    My problem is the last part I wrote:

    The problem is that I tried creating a boolean attribute Game.AnswerIsFalse, and tried to apply that to the other fruits as an incorrect answer, and it doesn't work

    I basically put these rules under the other fruits (wrong answers)

    Whem mouse button is down, Change attribute: Game.Incorrectanswer to: True

    and under the scene editor, did an attribute changes, game.incorrectanswer is true

    Display text: Game over! and change scene to initial scene

    But it doesn't display game over, it displays the text, Great Job!

    What am I doing wrong?

    Do I need to create different attributes

    Any help is appreciated if anyone has attempted this genre of gaming!

    This one's for you Quantum! :) Or JGary!
  • AkonronAkonron Member Posts: 11
    You have to reset all the attributes u have changed.
  • linemaniac231linemaniac231 Member Posts: 7
    I know how to fix it!! make each picture a button by making a rule where to click the button, you have to have the mouse over the image. Put in the "change scene" thing and choose the page you want it to go to. For the wrong answers, make it go to a fail page, and for the right answer make it go to the next question/page. Do this for every question, and walla, you have your multiple choice answers!
  • beaudoin_nbeaudoin_n Member Posts: 184
    Sorry i was just reading this (looking for something else)

    Did you continue with this project ?
Sign In or Register to comment.