Creating mini game - need help

Sep 17, 2021

Hello everyone,

I needed to create a fairly large course for the client, in which he demanded that a certain game has to be made. Since this project contains a bunch of different goals, I decided to create a small game where the user will click on each goal and answer several questions on the same.

Attached is an Articulate file that contains a simple sketch with buttons and created variables. As you can see the main page contains 4 categories / goals that lead to questions through the lightbox option (project will contain way more questions).  Also in the upper right corner on the main page I created a SCORE variable that successfully adds and subtracts points from users. On each question within the correct layer I simply added a value and subtracted it on the incorrect layer.

The problem is that the state of the categories on the home page does not change. Eg. for category 1, I made it change to the correct (green) state, only if the correct1 variable is also correct, and it is defined on the first question.

Also the "submit results" button should change its state when all questions are answered.

Also, the whole project is designed to lead to the next slide after the layer "success" is displayed, where the user will enter his name and download the certificate. Of course I will create this through javascript and that is another question.

Thanks in advance for the help.

3 Replies
Den Miden

Milane,

I've attached a new version of your story file. It has been adapted to what I think you have asked for in your post. I also added a condition to your "counter" triggers on each layer so the score is not counting 10 points backward (-10) when an incorrect answer is selected while your score is still zero. When the retry button is clicked, the quiz will reset so you may take it again. Hope this helps. 

Milan Zec

Dear Den,

Thank you very much for your assistance, this is amazing. First, I wanted to go below 0 for the users, but now I see it's better not to go with that solution, so I will use yours.

Anyway, I have two questions for you:

  1. I forgot to mention that I would like each category to be locked after answering. It is currently possible to answer questions again after returning to the categories. I just set all categories to disabled when the questions are finished, but I can't have two same states if you know what I mean. They need to be disabled even if they are green or red for incorrect. What should I do? Maybe I can add transparent rectangles above categories and change their state after categories are answered? What do you think? And also, how to change "Submit results" in this case?

  2. The second question is related to layer failure, the trigger is set to "jump to this slide" when the button is clicked but I wonder why the "When revisiting - Resume saved state" option is left, shouldn't it be reset to the initial state?

  3. Thank you.

 

Den Miden

Hi Milan,

I adjusted your file per your question 1. As suggested, I used a transparent rectangle shape to "disable" buttons on the base layer when all questions are answered.  I've also added the hidden next button on top of the submit button. It will be visible when you return to the base layer from the failure layer while the submit button stays hidden. You can use it to move on to the next game or another set of questions after the first game is over. Otherwise, let me know what would you like to do next after you answer all questions in this game. I slightly adjusted triggers that change the state of the buttons. For instance, "Change state of Button1" to "NotAnswered" when the timeline starts If "answered1" = False (initial value).  All "answeredX" variables are then set to TRUE when the timeline starts on the failure layer knowing that all questions are already answered by the time you get on the failure layer. Upon return to the base layer, all buttons will still have their "correct" and "incorrect" button states. And there is an answer to your question 2. Resume saved state will ensure your learners are not allowed to play this game again when returned to this slide by keeping a transparent rectangle shape and buttons state in its saved (not selectable) state. Resetting to the initial state would reset all elements state to what you have initially set them up for. Find the attached version.