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

Similar to Scratch character commands (20)

PPTX
Scratch Lesson 1
PPSX
Mec e learning2
DOCX
Scratch for kids syllabus for 5 hours by bibek pandit
DOCX
Work flow
DOCX
2d game engine workflow
DOCX
Joshua meyer 2D Game workflow document
PPTX
Coding scratch
DOCX
Workflow
PDF
Scratch Animation
DOCX
Workflow
PPTX
PDF
Scaleform Mini-Games Tutorial 1/3
DOCX
Task 2 workflow
PPTX
PEMBELAJARAN PEMROGRAMAN DASAR SCRACTH PEMULA
PPTX
Game maker walkthrough
PPT
Part 5 – animating your character
PPTX
Lesson one presentation
PDF
BGC2011Scratch-Rev1.pdf
PDF
Scratch_1022
PDF
2 d gameplaytutorial
Scratch Lesson 1
Mec e learning2
Scratch for kids syllabus for 5 hours by bibek pandit
Work flow
2d game engine workflow
Joshua meyer 2D Game workflow document
Coding scratch
Workflow
Scratch Animation
Workflow
Scaleform Mini-Games Tutorial 1/3
Task 2 workflow
PEMBELAJARAN PEMROGRAMAN DASAR SCRACTH PEMULA
Game maker walkthrough
Part 5 – animating your character
Lesson one presentation
BGC2011Scratch-Rev1.pdf
Scratch_1022
2 d gameplaytutorial
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 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
Photoshop tutorial 1 setting up the canvas
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
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 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
Photoshop tutorial 1 setting up the canvas
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
Ad

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Cell Structure & Organelles in detailed.
PDF
Classroom Observation Tools for Teachers
PPTX
Lesson notes of climatology university.
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Presentation on HIE in infants and its manifestations
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
master seminar digital applications in india
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
GDM (1) (1).pptx small presentation for students
Cell Structure & Organelles in detailed.
Classroom Observation Tools for Teachers
Lesson notes of climatology university.
Pharma ospi slides which help in ospi learning
Presentation on HIE in infants and its manifestations
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
01-Introduction-to-Information-Management.pdf
Microbial diseases, their pathogenesis and prophylaxis
102 student loan defaulters named and shamed – Is someone you know on the list?
master seminar digital applications in india
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Module 4: Burden of Disease Tutorial Slides S2 2025
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS

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.