Beruflich Dokumente
Kultur Dokumente
`
First: Create your character Sprite, or import from file.
1
Open Scratch and
Delete the cat
(right click, delete)
2
Click the new button (or click import from file if you
made a custom spaceship)
3
Choose a sprite to be
your character.
Then click OK.
`
Next: Program your Character so it can move
5
Click the green arrow to play-test your code, if the character doesn’t move
left and right, double check your code.
`
Next: Design a cool background and deadly area
6
Click on the “paint new
backdrop” button.
7
Draw or import a cool
background for your level!
`
Next: Make some platform sprites
10
Click the Draw new sprite
button
11
Click magnifier and zoom to
200%, then draw a small
platform. (use a different color
than your deadly zone)
12
Drag your platform to
where you want it in your
level, and make it bigger or
smaller by clicking enlarge
or shrink, and then clicking
your platform.
`
Next: Make your character jump and fall with gravity
Click on your
character sprite, then
scripts, and add this
code to your
character sprite.
This simulates
14 gravity
15
Add this code to your character
sprite to make it go back to the
beginning when it touches the
deadly zone!
T
The color here has to be the same
` color as your deadly zone.
Next: Design your level and moving platforms
16
Click on the paint new sprite
button, or duplicate your old
platform sprite (right click
and duplicate).
18 d
To make your
game a little
harder, choose a
platform or 2 and
add this code to Pro Tip: the “repeat” numbers
change how far the platform
get them to moves and “change x by” numbers
move change how fast it moves
`
Next: Add a goal, and create variables
r
19
Click on the paint new
sprite button and
draw a goal portal
20 Click on scripts,
then data,
then Make a Variable.
`
Next: program your goal and limited lives
22
Add this code to your goal
sprite to make you win.
23
If you want to have
limited lives, add these
two bits of code to your
character sprite’s
jumping function.
`
Next: Finish lives and add game over screen
25 Game-Over
backdrop if you
lose all your lives.
`
Bonus continued: