From Test-Scratch-Wiki

An image of the Stage with a sprite on it (the Scratch 喵咪). A thumbnail of the stage is on the left.

The Stage is the term for the background of the 专案, but can have 程式, 背景 (costumes), and 音效, similar to a 角色. It has some restrictions of sprite functionality, such as motion and size 积木.

No sprites can move behind the Stage — the Stage is always at the back layer.

与角色的差异处

There are many differences between the Stage and other sprites. These include the following:

  • Is stationary

— thus,

— thus

  • Has backdrops instead of costumes
  • Cannot be renamed
  • Has no "show" or "hide" blocks in the Looks category
  • Cannot change layers

— it is always at the very back layer.

  • Must have a 480x360 dimension
  • Space in backgrounds left transparent becomes white automatically

编写程式

The Stage field has a scripts tab that can be used in the same way as in a sprite, with the following exceptions:

Show, Hide, 造型, 尺寸, layer, 造型编号, 画笔类积木 (except Clear), When I Start as a Clone, Delete This Clone, touching, and Distance to () blocks cannot be used.

  • The

背景换成 () 并等待, 背景换成下一个, and 背景编号 blocks are only for the Stage. This field is optional.

There is also a backdrops tab that can be used to add, delete, and edit backdrops. This field is required, and you cannot delete a backdrop when it's the only one. The dimensions are always 480x360. Transparent areas automatically become white in the project.

The optional sounds tab is identical to the sounds tab in sprites.

舞台尺寸

The stage can be 3 different sizes:

Regular
Normal mode; the Stage is 480x360 pixels
Small Stage Layout
Main article: Small Stage Layout
The stage is half the size with a resolution of 240x180 pixels; this is useful for having more room in the scripts area.
Full-screen mode
Main article: Full Screen
fits the player to one's web browser's current resolution

历史

Originally the Stage was included as another sprite in the sprite corral (now the 角色面板) and called the "Background".[1][2]

The Stage was introduced in Scratch 0.2.[3]

参见

参考

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