From Test-Scratch-Wiki

计时器重置
計時器重置
类别 侦测类积木
形狀 条形积木

The Reset Timer 积木 is a 侦测类积木 and a 条形积木. The block sets the 计时器's value back to 0.0. When this block is present, the project typically utilizes the 计时器 output block; usually the timer must be reset at the beginning of a project for the 计时器 block to hold the right value.

There are no blocks that set the timer to a chosen value. The timer can only be specifically set to 0, using this block.

用法示例

  • When a 专案 is started, resetting the timer along with it for the right timer value
當 @greenflag 被點擊
計時器重置
  • Resetting the timer for timing each level of a game
當收到訊息 [next v]
背景換成 [level 2 v]
計時器重置
  • Timing progress on various things, and resetting it when necessary
當收到訊息 [final level v]
背景換成 [end v]
計時器重置
重複無限次 
  如果 <(計時器) > [180]> 那麼 
    說出 [Game over!] (1) 秒
    停止 [全部 v]
  end
end

参见

Cookies help us deliver our services. By using our services, you agree to our use of cookies.