SlideShare a Scribd company logo
2
Most read
4
Most read
13
Most read
Build a basic maze in
Scratch
Prepared by Joy
Suliman for SLQ
Create the hero
Delete the cat
New sprite
Choose a sprite
from the file
Position it on
stage
Resize (shrink/
grow)
Rename it hero
Moving your hero
Select hero
When up arrow
key pressed
Point in direction 0
Move 10 steps
Duplicate with
stamp 3 times
Adjust values for
all directions
Create the maze background
Stage /
Backgrounds
New Background:
Paint
Select paint
bucket tool
Choose colour
and fill
Draw the maze
Paint new sprite
Zoom out
Select paint bucket
tool
Select rectangle tool
Draw a few
rectangles with
spaces between Rename sprite to maze
Rename costume to maze1
Resetting the hero
Select hero
When flag clicked
Go to x: y:
Point in direction 90
Forever if
Touching maze
Turn 180 degrees
Move 20 steps
Create the prizes
Select new sprite
from folder,
position, resize
Rename
Create the code
Duplicate the sprite
with stamp
Position, resize,
rename new
sprites
Create the maze background
Stage /
Backgrounds
New Background:
Paint
Select paint bucket
tool
Choose colour and
fill
Add sound effects
Select hero
Play drum 39 for 0.1
beats
Insert code into reset
loop
Select prize
Play drum 48 for 0.1
beats
Insert code, repeat for
each prize
Keeping score
Create a variable
called “score” for all
Select hero
Set score to 0
Select prize
Change score by 1
Simple you win
Select hero
When flag clicked
Forever
If
Score
= 3
Say winner!!
Want to add more levels?
We'll need to create a new set of variables
and put them into action
So watch carefully . . .
  Remove the
“winner” script
from the shark
  Create a variable
“level”
  Add this code to
the script for the
stage
  It works by setting
the level to the
score
Setting up the levels
Changing the maze
  Create a new
costume for the maze
called maze 2
  Create a new
costume for the maze
with a win message
called end screen
  Include this code in
the maze scripts
New prizes for the new level
  Draw or import a new
prize sprite
  Create a new
costume for the maze
with a win message
called end screen
  Include this code in
the maze scripts
A bit of tidying up . . .
  Select the hero
  Add these two bits of
code
Pimp and personalise your
game . . .
  Animate the
hero or prizes
  Add more
levels, see if
you can
make then
harder
  Set a timer
for each level
  Use the pen
scripts so
that you hero
leaves a trail
  Create
instructions,
a start screen
and story
  Add or create
soundtrack
for your
game
Want more?
  Go to the scratch website
www.scratch.mit.edu
  Have a look around, find something you like,
check out the code, and see if you can modify it
to use in your game.

More Related Content

PPT
A mazing Game
PDF
Scratch Animation
PPT
Scratch Project
PDF
Coding Basics with Scratch
PPT
Mini Scratch Unit
PPT
Intro To Scratch
PPT
Scratch for intermediates course
PPTX
Programming in scratch
A mazing Game
Scratch Animation
Scratch Project
Coding Basics with Scratch
Mini Scratch Unit
Intro To Scratch
Scratch for intermediates course
Programming in scratch

What's hot (20)

PPTX
Scratch Programming
PPTX
Coding with kids
PPTX
Scratch Lesson 1
PDF
Oficina scratch
PPTX
History of game development
PPTX
Lesson 1: Scratch Computer Programming
PPTX
Unity - Essentials of Programming in Unity
PPTX
[IGC 2017] 넥슨코리아 오현근 - 평생 게임 기획자 하기
PPTX
Scratch Lesson 2
PDF
Class #1: Blocks and Vocabulary
PDF
Snake Game in Python Progress report
PPTX
Lesson 1 - Coding with Minecraft -Introduction.pptx
PPTX
report on snake game
PPTX
Unity 3D game engine seminar
PPTX
Scratch programming
PPT
Introduction to Scratch Programming
PDF
scratch-3-tutorial.pdf
PDF
Introduction to Game Design
PPT
Scratch Lesson 1 – Basics
Scratch Programming
Coding with kids
Scratch Lesson 1
Oficina scratch
History of game development
Lesson 1: Scratch Computer Programming
Unity - Essentials of Programming in Unity
[IGC 2017] 넥슨코리아 오현근 - 평생 게임 기획자 하기
Scratch Lesson 2
Class #1: Blocks and Vocabulary
Snake Game in Python Progress report
Lesson 1 - Coding with Minecraft -Introduction.pptx
report on snake game
Unity 3D game engine seminar
Scratch programming
Introduction to Scratch Programming
scratch-3-tutorial.pdf
Introduction to Game Design
Scratch Lesson 1 – Basics
Ad

Viewers also liked (13)

PPTX
Ms power point grade vi
PPTX
Ms powerpoint
PDF
Microsoft Powerpoint Basics
PPT
Scratch In The Classroom
PPT
Power Point Basics
PPTX
Scratch: Programming for everyone
PPT
Learn MS Powerpoint basics
PPSX
Power point tutorial basic animations.pptx
PPTX
Microsoft PowerPoint 2010
PPSX
Microsoft Power Point
PPT
PowerPoint Tutorial
PPT
Slideshare Powerpoint presentation
PPTX
Slideshare ppt
Ms power point grade vi
Ms powerpoint
Microsoft Powerpoint Basics
Scratch In The Classroom
Power Point Basics
Scratch: Programming for everyone
Learn MS Powerpoint basics
Power point tutorial basic animations.pptx
Microsoft PowerPoint 2010
Microsoft Power Point
PowerPoint Tutorial
Slideshare Powerpoint presentation
Slideshare ppt
Ad

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
master seminar digital applications in india
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
01-Introduction-to-Information-Management.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Module 4: Burden of Disease Tutorial Slides S2 2025
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Insiders guide to clinical Medicine.pdf
Pre independence Education in Inndia.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Microbial disease of the cardiovascular and lymphatic systems
human mycosis Human fungal infections are called human mycosis..pptx
TR - Agricultural Crops Production NC III.pdf
master seminar digital applications in india
RMMM.pdf make it easy to upload and study
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
01-Introduction-to-Information-Management.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx

Build a basic maze in scratch (v1)

  • 1. Build a basic maze in Scratch Prepared by Joy Suliman for SLQ
  • 2. Create the hero Delete the cat New sprite Choose a sprite from the file Position it on stage Resize (shrink/ grow) Rename it hero
  • 3. Moving your hero Select hero When up arrow key pressed Point in direction 0 Move 10 steps Duplicate with stamp 3 times Adjust values for all directions
  • 4. Create the maze background Stage / Backgrounds New Background: Paint Select paint bucket tool Choose colour and fill
  • 5. Draw the maze Paint new sprite Zoom out Select paint bucket tool Select rectangle tool Draw a few rectangles with spaces between Rename sprite to maze Rename costume to maze1
  • 6. Resetting the hero Select hero When flag clicked Go to x: y: Point in direction 90 Forever if Touching maze Turn 180 degrees Move 20 steps
  • 7. Create the prizes Select new sprite from folder, position, resize Rename Create the code Duplicate the sprite with stamp Position, resize, rename new sprites
  • 8. Create the maze background Stage / Backgrounds New Background: Paint Select paint bucket tool Choose colour and fill
  • 9. Add sound effects Select hero Play drum 39 for 0.1 beats Insert code into reset loop Select prize Play drum 48 for 0.1 beats Insert code, repeat for each prize
  • 10. Keeping score Create a variable called “score” for all Select hero Set score to 0 Select prize Change score by 1
  • 11. Simple you win Select hero When flag clicked Forever If Score = 3 Say winner!!
  • 12. Want to add more levels? We'll need to create a new set of variables and put them into action So watch carefully . . .
  • 13.   Remove the “winner” script from the shark   Create a variable “level”   Add this code to the script for the stage   It works by setting the level to the score Setting up the levels
  • 14. Changing the maze   Create a new costume for the maze called maze 2   Create a new costume for the maze with a win message called end screen   Include this code in the maze scripts
  • 15. New prizes for the new level   Draw or import a new prize sprite   Create a new costume for the maze with a win message called end screen   Include this code in the maze scripts
  • 16. A bit of tidying up . . .   Select the hero   Add these two bits of code
  • 17. Pimp and personalise your game . . .   Animate the hero or prizes   Add more levels, see if you can make then harder   Set a timer for each level   Use the pen scripts so that you hero leaves a trail   Create instructions, a start screen and story   Add or create soundtrack for your game
  • 18. Want more?   Go to the scratch website www.scratch.mit.edu   Have a look around, find something you like, check out the code, and see if you can modify it to use in your game.