新 探索 Scratch 積木辭典、核心概念、專題教學與課堂教學指南

開始學習 →

Custom Block Boolean Input|積木用法詳解

📌 本頁學習重點

「Custom Block Boolean Input」屬於 Scratch 3.0 的「函式積木」分類,是製作互動遊戲、動畫與實用工具時不可或缺的核心積木。

積木功能與使用時機

「Custom Block Boolean Input」屬於 Scratch 3.0 的「函式積木」分類,是製作互動遊戲、動畫與實用工具時不可或缺的核心積木。

建議先在空白專案單獨組裝下方最小範例,按下綠旗前先預測結果,再一次只修改一個數字觀察變化。

動手試試看範例

對照以下 Scratch 3.0 積木範例在編輯器實作測試:

Custom Block Boolean Input
  1. Define (Award Points pts with sound sound?)
  2. Change score by pts
  3. If sound? then
  4. Start sound Coin

動手試試看: Awards points with optional audio depending on the boolean input.

相關積木指南

建議先在空白專案單獨組裝下方最小範例,按下綠旗前先預測結果,再一次只修改一個數字觀察變化。

回到「函式積木」總覽 函式積木 查看詳情 → 回到 Scratch 積木辭典首頁 Scratch 3.0 查看詳情 →

FAQ

什麼時候適合使用「Custom Block Boolean Input」積木?

當你在「函式積木」邏輯中需要此動作或數值控制時即可搭配使用「Custom Block Boolean Input」,並記得在綠旗下方初始化狀態。

本指南僅供學習參考。Scratch 介面與使用條款可能會隨版本更新而變動,請一併參考 Scratch 官方網站說明。