Math Quiz : Simple Equation

5

Index

Attached Files

The following files have been attached to this tutorial:

.capx

simple-math-equations-game.capx

Download now 174.98 KB

Stats

7,183 visits, 15,873 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 23 Aug, 2015. Last updated 19 Feb, 2019

Today, we're gonna make an education puzzle game which uses simple math equations and matching logic.

BASIC GAMEPLAY

A math equation will appear, and the user will answer the result by clicking multiple choices below. The challenge is, to answer the question within 5 seconds. If you fail or enter false answer, game over. But if true, proceed to next question.

1.) Insert touch and function plugin.

2.) On start of layout call function "Create()" to make the question, which we'll create it later. Now, let's focus on the gameplay.

2.) Add global variable "REMANING_TIME" (number) to count the time. Then, subtract it by 1 every one second, if it's value is greater than -1.

3.) If REMAINING_TIME is equal to -1, game over.

4.) Create two text object "txt_Time" and " txt_Check".

txt_Time will display REMAINING_TIME, and txt_Check will be used to display "Game Over" text.

Note that we use "&" to join string (text) with variable.

  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!