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).
设置了定时器,标签什么都对(用单字节的双引号等)却不起作用:
@Chance-Z 因为定时器开启的动作是由一个非触发器条件运行的;如果定时器运行的时候再次被开启,则它会重置时间。所以,你的定时器每帧都被重置了一次,自然是不会触发到达时间的条件了。解决方法很简单,给开启定时器前面的条件加上一个仅触发一次即可,或者换成一个触发器条件。
@zjxdiu 谢谢,我试试