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.