GameMaker Studio 2 contains a large number functions to deal with different areas of mathematics, numbers of all types and the date and time. Most of these functions can be found in the sections listed below:
There are a couple of built in constants that also can be evaluated as real numbers (although you should always check for the constant rather than the value):
常量 | 值 |
---|---|
true | 1 |
false | 0 (although any value less than 1 will also evaluate as false) |
pi | 3.141592653589793280etc... (the exact value will depend on various factors like platform being built for) |