Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
怎么设置全局变量不能为负数
我的办法是写一个当全局变量小于0时设置为零的事件
@maker发 除了楼上的方法,也可以试试设置值时就用clamp表达式限制值的范围,例如给这个变量减去20时,就把它设置值为 clamp(全局变量-20,0,9999) ,那么它的结果最后必定是0到9999这个范围以内,小于0会变成0,大于9999会变成9999