SlideShare a Scribd company logo
Scratch Part 2 – Character Commands
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.
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
Step 1 – Open your game
Step 2 – Go to the Scripts tab
Step 3 – Select Control
Step 4 – Drag “When [Space] key pressed” box into script area
Step 5 – Change Space to Up Arrow
Step 6 – Go To Motion
Step 7 – Add “Point in direction 90” to your script
Step 8 – Change the direction to “(0) Up”
Step 9 – Add “move 10 steps” to your script
Step 10 – Go back to control
Step 11 – Add “Stop Script” to the bottom of your script
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
You have now made your character move, however if it goes to the edge of the screen it doesn’t 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 haven’t made a mistake.
Stopping your character at the edge of the screen. For this you need to start in the Scripts tab with the control options open.
Step 1 – Add “When (Flag) Clicked”
Step 2 – Add “Forever” to the script
Step 3 – Go to the Motion options
Step 4 – Add “if on edge, bounce” option to the script.
Step 5 – Active the flag for this to work properly
Complete You have now created your own character and it should be able to move around the white screen and stop at the edges. Well Done.

More Related Content

PPTX
SFM Lesson 2
PPT
Computer Download
PPT
Scratch part 4 moving around the maze
PPTX
How to create content placeholder animations for Android using shimmer effects?
PPTX
Steps on how to move a wheel of car
PPTX
Google sketch up storyboard 1
PPTX
Slide show test
PDF
How to add a drop shadow to your product images in Adobe Photoshop
SFM Lesson 2
Computer Download
Scratch part 4 moving around the maze
How to create content placeholder animations for Android using shimmer effects?
Steps on how to move a wheel of car
Google sketch up storyboard 1
Slide show test
How to add a drop shadow to your product images in Adobe Photoshop

Viewers also liked (17)

PPT
Game design part 5
PPT
Game design part 9
PPTX
Alice part 1 – getting started Update
PPT
Game design part 6
PPT
Game design part 2
PPT
Game design part 11
PPTX
Plenary animation quiz
PPT
Game design part 12
PPT
Scratch part 1 sprites
PPT
Game design part 4
PPT
Scratch part 3 – creating a level
PPTX
Year 8 python part 1 - debugging
PPT
Scratch part 1 sprites
PPT
Scratch character commands
PPT
Scratch part 1 sprites
PPTX
Photoshop tutorial 1 setting up the canvas
PPT
Game Maker Design part 1
Game design part 5
Game design part 9
Alice part 1 – getting started Update
Game design part 6
Game design part 2
Game design part 11
Plenary animation quiz
Game design part 12
Scratch part 1 sprites
Game design part 4
Scratch part 3 – creating a level
Year 8 python part 1 - debugging
Scratch part 1 sprites
Scratch character commands
Scratch part 1 sprites
Photoshop tutorial 1 setting up the canvas
Game Maker Design part 1
Ad

Similar to Scratch character commands (20)

PPT
Part 6 – adding dots and scores
PPTX
Start developing projects with Scratch Programming
PPT
Roamer World
PDF
Quick Step by Step Flash Tutorial
PDF
PPTX
Lesson one presentation
PDF
Scratch Animation
PDF
Star logo nova code cookbook
PDF
Star logo nova code cookbook(1)
PDF
Vb Updownscrollbar
 
PDF
Flashworkshop 090317231102-phpapp01
PDF
Flashworkshop 090317231102-phpapp01
PPT
SDN Mentor Hands On - Exercise 2
PPT
Powerpoint class 4
PDF
mastercam_full
PDF
mastercam_full
PDF
controlling_animations
PDF
controlling_animations
PPT
Kangaroo tutorial
PPTX
04 Car race track game
Part 6 – adding dots and scores
Start developing projects with Scratch Programming
Roamer World
Quick Step by Step Flash Tutorial
Lesson one presentation
Scratch Animation
Star logo nova code cookbook
Star logo nova code cookbook(1)
Vb Updownscrollbar
 
Flashworkshop 090317231102-phpapp01
Flashworkshop 090317231102-phpapp01
SDN Mentor Hands On - Exercise 2
Powerpoint class 4
mastercam_full
mastercam_full
controlling_animations
controlling_animations
Kangaroo tutorial
04 Car race track game
Ad

More from Andrew Willetts (20)

PPTX
Photoshop tutorial 6 desaturisation
PPTX
Photoshop tutorial 5 clipping masks
PPTX
Photoshop tutorial 4 spot healing tool
PPTX
Photoshop tutorial 3 stamp tool
PPTX
Year 8 python part 1 - debugging
PPTX
Year 7 e-safety part 2
PPTX
Year 7 e-safety part 1
PPTX
Photoshop tutorial 2 rubber and quick select tools
PPTX
Programming Challenge
PPTX
Programming Variables
PPTX
Programming Adding Interupts
PPTX
Programming Hello World
PPTX
03 outputs
PPTX
PPTX
Computer Devices - What Are they?
PPTX
Data Flow Diagrams
PPTX
Databases dfd
PPT
Data flow diagrams
PPTX
Alice part 2 – background objects
PPTX
Alice part 3 – adding text
Photoshop tutorial 6 desaturisation
Photoshop tutorial 5 clipping masks
Photoshop tutorial 4 spot healing tool
Photoshop tutorial 3 stamp tool
Year 8 python part 1 - debugging
Year 7 e-safety part 2
Year 7 e-safety part 1
Photoshop tutorial 2 rubber and quick select tools
Programming Challenge
Programming Variables
Programming Adding Interupts
Programming Hello World
03 outputs
Computer Devices - What Are they?
Data Flow Diagrams
Databases dfd
Data flow diagrams
Alice part 2 – background objects
Alice part 3 – adding text

Recently uploaded (20)

PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Institutional Correction lecture only . . .
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Cell Types and Its function , kingdom of life
PDF
Computing-Curriculum for Schools in Ghana
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Presentation on HIE in infants and its manifestations
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
01-Introduction-to-Information-Management.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Anesthesia in Laparoscopic Surgery in India
Institutional Correction lecture only . . .
A systematic review of self-coping strategies used by university students to ...
Cell Types and Its function , kingdom of life
Computing-Curriculum for Schools in Ghana
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
O5-L3 Freight Transport Ops (International) V1.pdf
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
Presentation on HIE in infants and its manifestations
Microbial disease of the cardiovascular and lymphatic systems
01-Introduction-to-Information-Management.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf

Scratch character commands

  • 1. Scratch Part 2 – Character Commands
  • 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
  • 4. Step 1 – Open your game
  • 5. Step 2 – Go to the Scripts tab
  • 6. Step 3 – Select Control
  • 7. Step 4 – Drag “When [Space] key pressed” box into script area
  • 8. Step 5 – Change Space to Up Arrow
  • 9. Step 6 – Go To Motion
  • 10. Step 7 – Add “Point in direction 90” to your script
  • 11. Step 8 – Change the direction to “(0) Up”
  • 12. Step 9 – Add “move 10 steps” to your script
  • 13. Step 10 – Go back to control
  • 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 doesn’t 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 haven’t 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.
  • 18. Step 1 – Add “When (Flag) Clicked”
  • 19. Step 2 – Add “Forever” to the script
  • 20. Step 3 – Go to the Motion options
  • 21. Step 4 – Add “if on edge, bounce” option to the script.
  • 22. Step 5 – Active the flag for this to work properly
  • 23. Complete You have now created your own character and it should be able to move around the white screen and stop at the edges. Well Done.