数学和数字

GameMaker包含大量的函数来处理不同的数学领域,所有类型的数字以及日期和时间。这些函数中的大多数可以在下面的小节中找到:

 

有一些内置常量也可以计算为实数 (尽管您应该始终检查常量而不是值):

常量
true1 (although any value equal to or greater than 1 will evaluate as true)
false0 (although any value less than 1 will also evaluate as false)
pi3.141592653589793280... (the exact value will depend on various factors like the platform being targeted)