This guide teaches the user to create character movement commands in Scratch. It shows how to:
1. Create scripts that use arrow keys to move the character up, down, left, and right by changing the character's direction and number of steps.
2. Add a "stop script" block to end each movement script.
3. Create an additional script using a flag click to make the character bounce back if it reaches the edge of the screen.
2. What does a command do? Commands in programming allow an object whatever it is to do something. In the case of this object it will be your character moving.
3. What does this guide show? In this guide you will learn to make your character do the following: - Move up Move Down Move Left Move Right Stop at the edge of the screen
14. Step 11 Add Stop Script to the bottom of your script
15. Step 12 Repeat this 3 more times You should now create 3 new scripts for the following: - Move Down Move Left Move Right This is done in the same way you just need to change the options for the key pressed and the direction. As below: - Script Key Direction Move Down Down Arrow (180) Down Move Left Left Arrow (-90) Left Move Right Right Arrow (90) Right
16. You have now made your character move, however if it goes to the edge of the screen it doesnt stop this need to be fixed. If your scripts work move on to the next slide. If not you need to go back over the steps making sure you havent made a mistake.
17. Stopping your character at the edge of the screen. For this you need to start in the Scripts tab with the control options open.