I'm creating a simple car game. I created a variable that every fraction of a second shows the current speed of the main car.
The problem is, when the car reverses. Values ??are minus, and I want them to be positive.
How Can I do that?
'abs' gives you the absolute value.
Gloable number myVariable=-1
System Every X seconds -> Text| Set text to abs(myVariable)
Will give 1
Develop games in your browser. Powerful, performant & highly capable.
Asmodean Thanks! That's very helpful!