I am trying to make a game like freaking math but i have a problem. In this game you get questions like (1+2=3 or 1+1=4) and you have to say if they are true or correct. I was thinking to make more events and if the player answers correct to sent them to a random event with another question. But this would not be the best ideea becouse it will take me more than 100 events. Also i was thinkng to make more layers and say if layer X is visible & player press the correct button make layer invisible, make another layer visible and so on. But also this will take a lot of events and layers. Another ideea would be to make a spritefont and change the texts and compare the text to know if the answer is right or no.

All of those ideea would take lots of resources, do you have any other ideea?

Okay, I've just had a quick look at Freaking Math, it's pretty easy to pull off, here's the psuedo.

You're going to want a text that shows an equation, let's set it out like this:

"random(0,50) + random (0,50) ="

And a second text object that shows an answer that's either right or close to it:

"equation.sum+random(-5,5)"

And finally two buttons, a tick and cross.

If the user hits the tick, compare the answer with the equation sum, if it's equal +1 to score. If they hit the cross invert the check. An incorrect answer resets the score to zero. Either answer causes the event to loop so you get a new question.

This was all typed out in a hurry, please ask if you have any questions/ feel free to correct any errors!

I do not need the text to show me "random(0,50) + random (0,50) =" this. So i made to this //int(random(0,50))& "+" & int(random(0,50)) & "=" //

Now this code will show me 23+4 (for example). But now how do i make the second text to actually make the sum between those numbers ? ( i did not got this part "equation.sum+random(-5,5)")