I making a math game, i put the answer in a global var, i need to put in 1 of 4 options, with each one 25% change to be the right one
Develop games in your browser. Powerful, performant & highly capable.
add instance variable. then compare it with global variable answer.
Create a global variable that is the answer to the problem. I assume you're going to put the answer in a text box. the global variable should be a number.
Textbox.text = globalvariable.value 》do something