From Test-Scratch-Wiki
变数 () 显示 | |
變數 [ v] 顯示 | |
类别 | 变量类积木 |
形狀 | 条形积木 |
加入於 | 1.3 |
The Show Variable () 积木 is a 变量类积木 and a 条形积木. The block shows the specified 变量的舞台监控视窗.
用法示例
In 专案 that use variables' 舞台 monitors to display things, the displays may have to hide and show at times; this can be done with the 变数 () 隐藏.
Some popular uses are:
- Displaying statistics at the end of a game
當收到訊息 [game end v] 變數 [score v] 顯示
- Toggle sliders in a simulation
當 [空白 v] 鍵被按下 變數 [width v] 顯示 變數 [height v] 顯示 變數 [depth v] 顯示 變數 [contrast v] 顯示
- Constantly keeping a variable at the front layer
當 @greenflag 被點擊 重複無限次 變數 [score v] 顯示 end
参见
Zho:变数类积木 | |
Zho:清单类积木 |
()
• 新增项目 () () • 删除第 () 项 () • 添加 () 为第 () 项 • 替换第 () 项于 () 成 () • 清单第 () 项项目 () • 清单 () 的项目数 • 清单 () 包含 () • 清单 () 显示 • 清单 () 隐藏更多积木… |