Hardware Reference
In-Depth Information
FIGURE 3-13 Scratch adventure role-playing game
Setting the Start Position of the
Adventurer Sprite
When the game begins, the Adventurer character will always start at a certain point on
the stage; after all, an adventure needs to start somewhere.
1. To set the start point, click the Adventurer Sprite and position it on the stage
where you want to start the game.
2. On the Scripts tab, drag the control block when
clicked and the motion
block go to x: y: (see Figure 3-14).
3. Set the x and y coordinates to where your Adventurer sprite is located on the
stage. You can ind its exact coordinates by looking near the top of the Scripts
tab, between the sprite's name and just above the tab labels.
4. You can also add a Motion block to point in direction _ if you want the
Adventurer sprite to be looking up, right, left or down at the start of the game.
he value you type into the block will determine the direction the sprite faces:
Use the value 0 to make the sprite look up, -90 for the left, 90 for the right or
180 for down. Try changing the value to see how your sprite responds (see
Figure 3-14).
Search WWH ::




Custom Search