Creating eLearning content is a job requiring a high level of creativity. It’s not just about the core content but also the way you transfer it. In today’s tutorial, I will guide you on how to use number variables to make a game-based eLearning called Counting Money Game to better engage your learners.
How to Play?
In this Counting Money Game, the player needs to drag money into the box and click the Check button to see the result. The challenge is to drag banknotes and coins into the box so that the amount of counted money matches the number on the title.
There will be 2 possible cases:
- If the answer is wrong: show incorrect feedback with the Try Again button for the player to replay the game.
- If the answer is right: show correct feedback.
Logic in Game
Each time the player drags a banknote or a coin into/out of the box (drop target), a corresponding variable will retrieve/subtract the value of the banknote or coin (x).
The total value of money dragged into the box will then be shown in the counting money box. A number variable (count) will collect these values. Therefore, we need to set events – actions for the drop target box:
- On Accept, add money value (x) to the variable (count) if the drag source is equal to (x).
- On Drag Leave, subtract money value (x) from the variable (count) if the drag source is equal to (x).
Steps to Create the Counting Money Game
1. Modify the Drag-n-Drop Question
In this game, there are 10 types of banknotes and coins of different denominations. Therefore, to create them from a drag-n-drop question, we need to:
- Add more drag sources and keep only one drop target.
- Insert an image of a banknote or a coin to each drag source. Then, add a connector for each correct pair of drag source and drop target.
- Set the drop target position: Absolute (select a drop target > in the Properties pane > Interactivity tab > Drag-n-Drop section > Position > Absolute).
For more information, please see: How to Create Drag-n-Drop Questions in ActivePresenter 8.
2. Add Events – Actions to this Question (drop target/the box)
- Create 2 types of number variables:
Count (1): to calculate the total value of money dragged into the box.
Money value (2): to retrieve the value from each banknote or coin.
For more information about creating number variables, please refer to this tutorial.
- Assign these variables to the box (drop target).
For more information, please take a look at this tutorial to know how to add events-actions.
- Add other similar actions to the On Accept event as follows:
Copy the above action and paste it into the On Accept event. (Use CTRL + C and CTRL + V hotkeys to get a quicker result).
Adjust the values and variables inside the actions. Afterwards, you will get a list of actions as shown in the image below:
- Add the On Drag Leave event and actions to subtract a corresponding money value from the box if any banknote or coin is dragged out of the box.
3. Add a Reference to the Counting Money Box
- Double-click the box > click Reference in the Home tab to add the count variable.
- As this box won’t show up until the player clicks the Check button, I need to hide it initially by right-clicking it and selecting Initially Hidden.
4. Add Events – Actions to the Check Button
- When the player clicks the Check button, the answer will appear in the counting money box. We need to add an action to show this answer up since it is hidden initially. Remember to clear the Hide After and Blocking options.
- Show the Correct Feedback Layer when the action is correct and show the Incorrect Feedback Layer when the action is incorrect.
As the player will get a second chance to replay the game if they answer incorrectly, we will need to add action to the Try Again button of the Incorrect Feedback Layer. To do that, in the View tab > click Feedback Master. This will open the Master View with different feedback layers. We will then add actions to the Try Again button of the Incorrect Feedback as shown in the image below:
That’s all about how to create a basic Counting Money Game using number variables in ActivePresenter 8. Now you can preview your work by clicking the Preview button. Hopefully, this will inspire you to build many rich interactive eLearning courses.