From Test-Scratch-Wiki

Translate: - English - 中文 
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,
  • Cannot talk — 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:

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]

参见

参考

  1. http://scratchforums.blob8108.net/forums/viewtopic.php?id=45531#p535764
  2. http://llk.media.mit.edu/projects/scratch/pacfish.gif
  3. http://llk.media.mit.edu/papers/ScratchSneakPreview.pdf#page=5