Smooth Scratch Movement

by pakku1029 in Design > Websites

6061 Views, 2 Favorites, 0 Comments

Smooth Scratch Movement

Hey! I'm pakku1029, and this is my first Instructables! In this lesson, we'll learn how to create smooth movement in Scratch!

Supplies

Scratch | a brain

Player Sprite

Create a player sprite. Select from the costume library or paint one yourself.

Variables

Create a new variable for your player sprite. Name it "speed x". Then, set it to zero on green flag. (see above)

Movement Setup

Then, make a new Custom Block. Add a label, "move x". Then add an input, "key x". Then turn on run without screen refresh. If stuck, follow the image above.

Movement

Watch the video for the code for the custom block.

FINISHED!

Ta-DA!!! Now put both these scripts into your backpack, so they work in any game!