GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Help with creating a Quiz game

butterbeanbutterbean Posts: 4,315Member, PRO
edited 8:45PM 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 Posts: 1,803Head Chef, Member, PRO
    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 Posts: 4,315Member, PRO
    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 Posts: 11Member
    You have to reset all the attributes u have changed.
  • linemaniac231linemaniac231 Posts: 7Member
    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 Posts: 184Member
    Sorry i was just reading this (looking for something else)

    Did you continue with this project ?
This discussion has been closed.