|realNum||The real number to be turned into a string.|
With this function you can turn any real number into a string.
If the real number is an integer, it will be saved with no decimal
places, otherwise, it will be saved with two decimal places.
draw_text(100, 100, "Score: " + string(score) + " / Health: " + string(health));
The above code uses the string function to draw both real numbers and strings together (draw will only accept either a string or a real, but not both).