game - user misses 5 the game stops

Mar 04, 2015

Hi! I'm developing a game that keeps score. It adds 1 when they get the answer correct, and subtracts 1 if they get answer wrong. However, I would like the game to stop, show the fail layer, when they have missed 5. There are 18 questions all together.

What actions/variable do I use for this?

 

Thanks!

 

22 Replies
Emily Ruby

Hello Debbie!

You could add a new variable right/wrong as numbers default to 0. Have them add 1 to each based on the selection box they choose. Then have the failure layer appear when Wrong = 5 or Right = 12 when they click the continue buttons on each layer.

I will put something together in a your file and post it on here in a bit.

Emily Ruby

Hi Debbie!

Attached is a file. I added 2 variables, RightAnswer, and WrongAnswer. For each answer check box, it is triggered to add 1 to one of these variables based on whether it is right or wrong. then added a trigger on the continue button to show Failure layer if WrongAnswer is =3, and show Congrats layer if RightAnswer is equal to 3, (I only added these variable triggers to the first 3, so you could change these numbers accordingly:) 

With this file, If you get STK, CUV and ARC wrong the failure will appear, if you get them all right, the congrats will appear. 

If you need them to get at least 5 wrong, you should be able to only add the trigger to show the layers on the continue button on the 5th question and beyond, since it seems they have to go in order with this game.

Hope this helps! 

i am sure there are other ways to achieve this, and others may jump in with additional ideas.

 

This discussion is closed. You can start a new discussion or contact Articulate Support.