Hello! So, I'm trying to make a math game, and it's sort of like a calculator program right now. Basically, the player is given an equation, and must use an operator combined with 4 randomly generated numbers to a set value (200) until it is equal to the given equation. For example, if the problem were 10 * 10 = __, and the player uses /2, then 200/2 = 100 and they win.
The way I'm doing the user interface, when the user clicks on an operator, it is sent to a global variable as a text. So if they clicked on +, global variable 'operator' is equal to "+". When they click on the "GO" button, it should submit the current operator and the current value into an equation.
So the problem is that I don't know how to combine these into an equation that construct understands. I tried to do:
On Button clicked:
System: set global variable 'answer' to global('answer'), global('operator'), global('value')
Text22: set text to global('answer')
Program can be found here: http://dl.dropbox.com/u/4055367/arithimagic.cap