A quiz

By the end you will have a three-question quiz. Right answers score points, wrong ones cost a life, and a final level shows the score.

What you need

Every piece is in Simple mode.

Question+ Add object โ†’ New โ†’ Question. Fill in Question, then Answers (one per line, up to 8). Pick The right answer (A., B., โ€ฆ).
Score+ Add object โ†’ New โ†’ Score. Put one on every level.
Lives+ Add object โ†’ New โ†’ Lives. In Whole game, set Lives at start to 3.
TextA Text object on the last level saying Quiz over!
SoundsIn the sidebar, + Built-in sound โ†’ Coin and Lose.
NutHouse
A Question object in the level editor, with four answers under it

Build it

One question per level keeps the rules tiny. Name the levels Q1, Q2 and Q3.

  1. Click + New level three times. Give each one a Question, a Score and a Lives object.
  2. Open the Events tab on Q1. Click + New event, click the Question, then pick The player picks the right answer.
  3. In the ๐ŸŽฌ Game cell choose Next level. In โ˜บ Player 1 choose Add to score and type 10. In โ™ช Sound choose Play a sound โ†’ Coin.
  4. Click + New event again. Pick the Question, then The player picks the wrong answer.
  5. In โ˜บ Player 1 choose Subtract lives and type 1. In the Question's cell choose Ask it again. Play Lose too.
  6. Add one more rule: Compare number of lives, = equal to 0 โ†’ Restart the game.
  7. Click the first row number, Shift-click the third, then press โŒ˜C. Go to Q2 and press โŒ˜V. Do the same for Q3.
  8. Make a fourth level called Done with the Score and the Quiz over! text.
  9. Press โ–ถโ–ถ Play game to play from the first question.
WhenThe player picks the right answer
DoNext levelAdd 10 to scorePlay sound Coin
WhenThe player picks the wrong answer
DoSubtract 1 from livesAsk it againPlay sound Lose
WhenNumber of lives is 0
DoRestart the game

Both Question conditions are red. They happen once, at the click, which is what you want.

Make it yours

  • Change Answer colour and Width so the answers fill the screen.
  • Put a picture next to each question: a sprite from the library that fits the topic.
  • Add a Timer display that counts down from 10. When Time runs out, do Next level.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.