Godot Version
Godot 3.2.3 (or any Godot 3 [NOT 4]
Question
Ok I is my code
var rng = RandomNumberGenerator.new()
var a
var b
var c
var temp1
var temp2
var temp3
func _physics_process(delta):
temp1 = rng.randi_range(1,100)
temp2 = rng.randi_range(1,100)
temp3 = rng.randi_range(1,100)
i use this for addition, or this for multiplication
a = temp1 + temp2 a = temp1 temp2
b = temp1 + temp3 b = temp1 temp3
c = temp2 + temp3 c = temp2 * temp3
so how do I do Subtraction or division
I.E (without errors or 8.9 etc..)
random1 - random number2 random1 / random2
a show three possible choices letting the player pick
the reason is in my game you walk up to a dragon he ask you a math question with possible answer
if you get it correctly the dragon dies gives you a random number of coins (etc.)
but if you get it wrong you lose a life and start the the level over.