Hardware Reference
In-Depth Information
Figure 11-7:
Using input
blocks to control
the motion of a
sprite in Scratch
A dialogue box will appear asking you to pick a sprite: double-click on the Things folder, and
then double-click on the Cheesy-Puffs sprite (shown in Figure 11-8). This will place the sprite
as a new entry in the Sprite palette, giving you a new object to control in the game.
The Scratch language is naturally multi-threaded and partially object-oriented . This means that
each object in the program, including sprites, can have its own code attached, and that each
section of code runs simultaneously and independently of any other block. Used properly,
these features enable you to create some quite complex programs.
TIP
By default, any sprite added into a Scratch project will appear in the dead centre of the stage.
As a result, this obscures the existing cat sprite. Click on the new sprite and drag it to the
right of the cat to fix the problem.
With the bowl of Cheesy-Puffs moved, it's still too large for our anthropomorphic two-legged
cat to eat. Click the Shrink Sprite button, which is located at the top-right of the stage area
and looks like four arrows pointing inwards. If you're not sure which one it is, hover the
mouse pointer over each icon for a short description of what it does.
 
Search WWH ::




Custom Search