📜  如何为变量 gamemaker studio 2 设置最大值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:40.940000             🧑  作者: Mango

代码示例1
[(A bit altered-) ANSWER FROM "Calvinatorr" ON REDDIT]

HP = 100;
maxHP = 100;
if (HP > maxHP)
{
    HP = maxHP;
}