From Test-Scratch-Wiki
下一个背景 | |
下一個背景 | |
类别 | 外观类积木 |
形狀 | 条形积木 |
加入於 | 2.0 |
The 背景换成下一个 积木 is a 外观类积木 and a 条形积木. The block changes the 背景 to the next in the list of backdrops, but if the current backdrop is the last in the list, the block will loop to the first.
The equivalent for a 角色 is the 造型换成下一个 block, though sprites do not have an 事件类的半圆形积木 for changing costumes.
历史
Prior to Scratch 2.0, this block was called Next Background and did not fire an event upon running. During 2.0 development, this block was also called "Next Scene".
用法示例
This block is mainly used in 动画类 程式, in which the Stage will progress through its backdrops as with 停止动画的动作. The 等待 () 秒 block is often used along with it to improve the animation speed.
Alternatively, it can be used for slideshow-style projects as shown below:
當 [空白 v] 鍵被按下 下一個背景
应用
- Main article: List of Block Workarounds
This block may simply be replicated with the following code:
背景換成 [下一個背景 v]
Also, because this block simply advances the 背景编号, the following code can do this:
背景換成 ((背景编号) + (1))
To get the effect of the nonexistent Previous Backdrop block, the addition can be changed to subtraction.
Removal
Many 用户 have made suggestions about removing this block, insisting that its alternative is perfectly fine to use; however, others have disagreed, saying that it saves lots of time and is handy for 动画.[citation needed]
The Scratch 团队 has made no comment on the matter, but is likely to keep the block for its handiness; it has been in Scratch since Scratch 1.0.
参见
角色用 |
说出 () () 秒
• 说出 () • 想着 () () 秒 • 想着 () • 显示 • 隐藏 • 造型换成 () • 造型换成下一个 • 背景换成 () • 效果 () 改变 () • 效果 () 设为 () • 效果清除 • 尺寸改变 () • 尺寸设为 () % • 图层上移至顶层 • 图层下移 () 层 • 造型编号 • 背景名称 • 尺寸 |
舞台用 |