Hello
I'm currently making a Mathematic game for kidsÂ
I'm making a basic four types of operation : multiply , addition , division and subtraction
The rest are done but I'm currently stuck on division operation part
If I do normally , the answer is still correct , its just that there are no decimal point
for example 3 / 2 = 1
But it should be 1.5
What I'm trying to achieve is :
A variable that holds one decimal point
A way for player to answer the question in one decimal point too.
How do I achieve that?
Thank you very much!
#EDIT
Succesfully stored value into variable
Here's the code if someone interested
I used the Control Variable event to generate random numbers
var x = $gameVariables.value(1); // get value from variable that stores num 1
var y = $gameVariables.value(2); // get value from variable that stores num 1
var z = (x /y).toFixed(1); // Divide operation and toFixed(how_many_decimal)
$gameVariables.setValue(4, z); // Assign the value into variable
So now all is left is how to let player answer in decimal too Â
Protected download