How do I make the math game?

Get help using Construct 2

Post » Wed Jun 14, 2017 2:42 am

Hello,
I try to make a math game with show the answer and then choose 2 or 3 or 4 (not over4) and sum is equal to answer that I've showed before.
Example. Show a image with number 13 and then choose 1,3,9 or 1,4,8 or 2,4,7 or 4,9 or 6,7
Image

please teach me.
thank you,
palopalo
B
4
S
1
Posts: 2
Reputation: 304

Post » Wed Jun 14, 2017 4:31 am

Hi.

Showing an image is simply SYSTEM create object (the box) and on this box place a Pinned text which will get a randomly generated number: int(random(1,36))

You will also need a GLOBAL variable to receive the same number for calculation purposes.

Then you need to know if the sum of the numbers picked by the player is adding up to your random number or not. For this also you can create a GLOBAL variable which will have a value of:

CONDITION 1) SUM of all boxes.
CONDITION 2) Box must be selected.

Then you need to compare the two with something like.

CONDITION) GLOBAL #2 = GLOBAL #1
ACTION) Victory!

Good luck!
Thank you to Construct 2 for giving me the ability to create games without programming knowledge.

My games & gaming portal = DolyGames

If anyone wants to cooperate to help each other Win-Win please email me - I am always happy to discover new opportunities.

Cheers,

COSMOS
B
20
S
9
G
1
Posts: 75
Reputation: 2,152

Post » Wed Jun 14, 2017 3:11 pm

Thanks

I will try
B
4
S
1
Posts: 2
Reputation: 304


Return to How do I....?

Who is online

Users browsing this forum: chrisyamao, ksiads and 5 guests