Introduction: 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
Step 1: Player Sprite
Create a player sprite. Select from the costume library or paint one yourself.
Step 2: Variables
Create a new variable for your player sprite. Name it "speed x". Then, set it to zero on green flag. (see above)
Step 3: 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.
Step 4: Movement
Watch the video for the code for the custom block.
Attachments
Step 5: FINISHED!
Ta-DA!!! Now put both these scripts into your backpack, so they work in any game!