Hello everyone! It’s the first time that I use this program. I’m making a platform game for my pupils, for reviewing maths, and I have doubts.

I want a question (a math operation) to be activated when they touch a treasure chest. If they answer correctly the box will open and they will receive a coin. How can I do that? Please, help, my pupils will thank you

# Help with boxes and questions (school game)

**alefresno**#1

Random math questions appearing whenever "play" is clicked for school game

**arthuro555**#2

When player collides with chest => delete the chest and make the question appear and an input with a text input object. Then when enter is hit make them invisible again, check if value of text input is correct, if it is add 1 to variable coin count and deactivate and clear the text input.

**alefresno**#3

Thank you, I’ll try to do that. One more question, is it possible to generate aleatories operations (maths) and check if the answer is correct automatically like in scratch program? Of this way, the questions are random and they don’t repeat each time they play to game.

**arthuro555**#4

You can create multiple “formats” like “x+y/z” or “x-yx” and create random values with the random expression, store them in variables, fill them in the spots of x y and z and calculate the predefined term with those values and store the result in a variable to compare after the input if the answer is correct

**alefresno**#5

Thank you very much for your help. But I’m new with the program and I still don’t know how to do it Do you have a template for a quizz game? Do you know some tutorial?

**zutty**#6

Check if this is what you intend to do.

Random math questions appearing whenever "play" is clicked for school game

**alefresno**#7

Thank you very much, you helped me a lot, I’ve managed to do what I wanted with your help🤗