SlideShare a Scribd company logo
1 of 34
Learning Outcomes
• To create a game using scratch software.
• To use scripts.
• To understand basic concept in
programming.
Keywords
• Iteration – forever loop
• Selection – forever if
• Variables
Following instructions
• Backward 2
• Forward 2
• Turn 180
• Hands up
• Hands down
Following instructions
Forever
Backward 2
Forward 2
Turn 180
Hands up
Hands down
Following instructions
Forever if (my hand up)
Backward 2
Forward 2
Turn 180
Hands up
Hands down
Where to open the task
•P:ICT folderYear 7
ICTTopic 6 Game
onLesson 4
•Makingagame.ppt
Plenary
•P:ICT folderYear 7
ICTTopic 6 Game
onLesson 4
•Complete the
plenary.doc
Step 1
1.Delete the
cat sprite.
Right click on
the sprite and
select delete.
Step 2 - Changing backgrounds
1. Click on the
stage
2.Select background
Click on Edit
Step 3 -Adding background
colourUse the fill tool to
create the
background
Step 4 - Adding a grid
Use the
rectangle
tool to
create the
grid
Step 5 - Create a pacman sprite
1. Select the
paint new sprite
button
2. Create your pacman
2
1
Step 6 – adding the dot
Use the paint brush to dra
a dot in front of pacman.
This should be different
colour to the Pacman
Save your pacman by
clicking OK
3
Step 7 - Create a new costume
2.Click on copy to create a new costume
Click on Edit for Costume2
3. Use the erase
tool to create a
mouth
Click OK
1
2
1. Select the costume tab
Step 9 – creating a new sprite
Click on create new sprite
1
Step 10 - Create a target sprite
Draw a circle the same
colour as your
background.
Draw another circle in the
same coloured dot. (i.e
orange)
Step 11 - Shrink your spritesClick on the
icon to shrink
your sprite
Step 12 - Duplicating your
sprites
Step 13 - Script blocks
Create a
script for the
sprite to
change
costume.
Hint Use the
colour
coding to
help you
Step 14 - Scripts to control
movement of your pacman
Create a new script.
This will move the pacman
This is
the colour
of the dot
This is the
colour of
your
background
Step 15 - Script to control
direction
Create scripts to move
the sprite right, left, up
and down.
Step 16 - Make a variable
Click on
the stage
Click on
variables
Give variable
name
orangecount
Step 17 - Set the starting value
Add this script
to the stage
Step 18 - Change the variable
1.Click on
Sprite2
Add the
code to
sprite 2
Step 19 - Duplicate script and add
to other sprites
Right click
and click
duplicate
Drag the
duplicate to
the other
sprites
Step 20 - Stopping the game
Click on the stage
Create this
script
Change this to
match the
number of
oranges
Step 21 - Game Timer
Create a new
variable called
timer
Create this
script to set the
timer to go up
by one second
each time
Challenges
• Can you write short scripts to do the following:-
• 1. Reset the time to zero at the start of the
game?
• 2. Replace the Pacman in the top left hand
corner at the start of the game?
• 3. reposition Pacman to face twoards the
righthand side of the screen.
• (hint if you click on the sprite you can see the
coordinates and position.
Include a bonus feature
Choose new
sprite from
file
Select from
the folder
Place the
bonus symbol
on the board
• Create a new variable called speed
• In the stage scripts area, set the
starting value to 2
• Adjust the pacman sprite script to
• Click on bonus spite. Duplicate the
script from other sprites.
• Change the script to double the speed.
(hint set the speed variable to 4)
Changing the bonus sprite
Add this script
to the bonus
sprite.
Remember to change
the orange count to 5
Create a ‘Game Over’ screen
Create a new
background by
clicking on copy
Click on Edit on background 2
Add the text Game Over
Game over script
Add the final script
to the stage to
finish the game
plenary
• Write down what you have done today on
your game.
• Write down what scripts you have used an
try to explain how one of them works.

More Related Content

Similar to Makingagame in scratch

Gl2010 m0 intro3-presentation
Gl2010 m0 intro3-presentationGl2010 m0 intro3-presentation
Gl2010 m0 intro3-presentationTracie King
 
Pong on SCRATCH Directions
Pong on SCRATCH DirectionsPong on SCRATCH Directions
Pong on SCRATCH Directionsvkmitchell
 
BGC2011Scratch-Rev1.pdf
BGC2011Scratch-Rev1.pdfBGC2011Scratch-Rev1.pdf
BGC2011Scratch-Rev1.pdfTNGanesan
 
Pong on SCRATCH Directions
Pong on SCRATCH DirectionsPong on SCRATCH Directions
Pong on SCRATCH Directionsvkmitchell
 
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2Kobkrit Viriyayudhakorn
 
Gl2010 m2 wn3-presentation
Gl2010 m2 wn3-presentationGl2010 m2 wn3-presentation
Gl2010 m2 wn3-presentationTracie King
 
Computer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessonsComputer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessonsSeniorInfants
 
Little book of programming challenges
Little book of programming challengesLittle book of programming challenges
Little book of programming challengesysolanki78
 
Technical and Testing Challenges: Using the "Protect The Square" Game
Technical and Testing Challenges: Using the "Protect The Square" GameTechnical and Testing Challenges: Using the "Protect The Square" Game
Technical and Testing Challenges: Using the "Protect The Square" GameAlan Richardson
 
Rotoscoping Instructions14 15
Rotoscoping Instructions14 15Rotoscoping Instructions14 15
Rotoscoping Instructions14 15Allen High School
 
PosterDigital SpinetiX Tutorial: How to connect your SpinetiX
PosterDigital SpinetiX Tutorial: How to connect your SpinetiXPosterDigital SpinetiX Tutorial: How to connect your SpinetiX
PosterDigital SpinetiX Tutorial: How to connect your SpinetiXPosterDigital
 
CMPTR2 Chapter 20 Creating a Presentation 1 On Your Ow.docx
CMPTR2  Chapter 20 Creating a Presentation 1   On Your Ow.docxCMPTR2  Chapter 20 Creating a Presentation 1   On Your Ow.docx
CMPTR2 Chapter 20 Creating a Presentation 1 On Your Ow.docxclarebernice
 
Creating a comic in Scratch v1.4 for Year 7
Creating a comic in Scratch v1.4 for Year 7Creating a comic in Scratch v1.4 for Year 7
Creating a comic in Scratch v1.4 for Year 7Patrick John McGee
 
Advantages of 2D Tilemaps for Mobile Games
Advantages of 2D Tilemaps for Mobile GamesAdvantages of 2D Tilemaps for Mobile Games
Advantages of 2D Tilemaps for Mobile GamesUnity Technologies
 
Raspberry Pi and Physical Computing Workshop
Raspberry Pi and Physical Computing WorkshopRaspberry Pi and Physical Computing Workshop
Raspberry Pi and Physical Computing WorkshopRachel Wang
 

Similar to Makingagame in scratch (20)

Scratch Animation
Scratch AnimationScratch Animation
Scratch Animation
 
Gl2010 m0 intro3-presentation
Gl2010 m0 intro3-presentationGl2010 m0 intro3-presentation
Gl2010 m0 intro3-presentation
 
Mayacompositetutorials
MayacompositetutorialsMayacompositetutorials
Mayacompositetutorials
 
Pong on SCRATCH Directions
Pong on SCRATCH DirectionsPong on SCRATCH Directions
Pong on SCRATCH Directions
 
BGC2011Scratch-Rev1.pdf
BGC2011Scratch-Rev1.pdfBGC2011Scratch-Rev1.pdf
BGC2011Scratch-Rev1.pdf
 
Pong on SCRATCH Directions
Pong on SCRATCH DirectionsPong on SCRATCH Directions
Pong on SCRATCH Directions
 
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
ITS488 Lecture 4: Google VR Cardboard Game Development: Basket Ball Game #2
 
Pong
PongPong
Pong
 
Gl2010 m2 wn3-presentation
Gl2010 m2 wn3-presentationGl2010 m2 wn3-presentation
Gl2010 m2 wn3-presentation
 
Roamer World
Roamer WorldRoamer World
Roamer World
 
Computer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessonsComputer Coding with Scratch: Lesson 2_primaryschoollessons
Computer Coding with Scratch: Lesson 2_primaryschoollessons
 
Little book of programming challenges
Little book of programming challengesLittle book of programming challenges
Little book of programming challenges
 
Technical and Testing Challenges: Using the "Protect The Square" Game
Technical and Testing Challenges: Using the "Protect The Square" GameTechnical and Testing Challenges: Using the "Protect The Square" Game
Technical and Testing Challenges: Using the "Protect The Square" Game
 
Rotoscoping Instructions14 15
Rotoscoping Instructions14 15Rotoscoping Instructions14 15
Rotoscoping Instructions14 15
 
PosterDigital SpinetiX Tutorial: How to connect your SpinetiX
PosterDigital SpinetiX Tutorial: How to connect your SpinetiXPosterDigital SpinetiX Tutorial: How to connect your SpinetiX
PosterDigital SpinetiX Tutorial: How to connect your SpinetiX
 
CMPTR2 Chapter 20 Creating a Presentation 1 On Your Ow.docx
CMPTR2  Chapter 20 Creating a Presentation 1   On Your Ow.docxCMPTR2  Chapter 20 Creating a Presentation 1   On Your Ow.docx
CMPTR2 Chapter 20 Creating a Presentation 1 On Your Ow.docx
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
Creating a comic in Scratch v1.4 for Year 7
Creating a comic in Scratch v1.4 for Year 7Creating a comic in Scratch v1.4 for Year 7
Creating a comic in Scratch v1.4 for Year 7
 
Advantages of 2D Tilemaps for Mobile Games
Advantages of 2D Tilemaps for Mobile GamesAdvantages of 2D Tilemaps for Mobile Games
Advantages of 2D Tilemaps for Mobile Games
 
Raspberry Pi and Physical Computing Workshop
Raspberry Pi and Physical Computing WorkshopRaspberry Pi and Physical Computing Workshop
Raspberry Pi and Physical Computing Workshop
 

Recently uploaded

ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 

Recently uploaded (20)

ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 

Makingagame in scratch

  • 1. Learning Outcomes • To create a game using scratch software. • To use scripts. • To understand basic concept in programming.
  • 2. Keywords • Iteration – forever loop • Selection – forever if • Variables
  • 3. Following instructions • Backward 2 • Forward 2 • Turn 180 • Hands up • Hands down
  • 4. Following instructions Forever Backward 2 Forward 2 Turn 180 Hands up Hands down
  • 5. Following instructions Forever if (my hand up) Backward 2 Forward 2 Turn 180 Hands up Hands down
  • 6. Where to open the task •P:ICT folderYear 7 ICTTopic 6 Game onLesson 4 •Makingagame.ppt
  • 7. Plenary •P:ICT folderYear 7 ICTTopic 6 Game onLesson 4 •Complete the plenary.doc
  • 8. Step 1 1.Delete the cat sprite. Right click on the sprite and select delete.
  • 9. Step 2 - Changing backgrounds 1. Click on the stage 2.Select background Click on Edit
  • 10. Step 3 -Adding background colourUse the fill tool to create the background
  • 11. Step 4 - Adding a grid Use the rectangle tool to create the grid
  • 12. Step 5 - Create a pacman sprite 1. Select the paint new sprite button 2. Create your pacman 2 1
  • 13. Step 6 – adding the dot Use the paint brush to dra a dot in front of pacman. This should be different colour to the Pacman Save your pacman by clicking OK 3
  • 14. Step 7 - Create a new costume 2.Click on copy to create a new costume Click on Edit for Costume2 3. Use the erase tool to create a mouth Click OK 1 2 1. Select the costume tab
  • 15. Step 9 – creating a new sprite Click on create new sprite 1
  • 16. Step 10 - Create a target sprite Draw a circle the same colour as your background. Draw another circle in the same coloured dot. (i.e orange)
  • 17. Step 11 - Shrink your spritesClick on the icon to shrink your sprite
  • 18. Step 12 - Duplicating your sprites
  • 19. Step 13 - Script blocks Create a script for the sprite to change costume. Hint Use the colour coding to help you
  • 20. Step 14 - Scripts to control movement of your pacman Create a new script. This will move the pacman This is the colour of the dot This is the colour of your background
  • 21. Step 15 - Script to control direction Create scripts to move the sprite right, left, up and down.
  • 22. Step 16 - Make a variable Click on the stage Click on variables Give variable name orangecount
  • 23. Step 17 - Set the starting value Add this script to the stage
  • 24. Step 18 - Change the variable 1.Click on Sprite2 Add the code to sprite 2
  • 25. Step 19 - Duplicate script and add to other sprites Right click and click duplicate Drag the duplicate to the other sprites
  • 26. Step 20 - Stopping the game Click on the stage Create this script Change this to match the number of oranges
  • 27. Step 21 - Game Timer Create a new variable called timer Create this script to set the timer to go up by one second each time
  • 28. Challenges • Can you write short scripts to do the following:- • 1. Reset the time to zero at the start of the game? • 2. Replace the Pacman in the top left hand corner at the start of the game? • 3. reposition Pacman to face twoards the righthand side of the screen. • (hint if you click on the sprite you can see the coordinates and position.
  • 29. Include a bonus feature Choose new sprite from file Select from the folder Place the bonus symbol on the board
  • 30. • Create a new variable called speed • In the stage scripts area, set the starting value to 2 • Adjust the pacman sprite script to • Click on bonus spite. Duplicate the script from other sprites. • Change the script to double the speed. (hint set the speed variable to 4)
  • 31. Changing the bonus sprite Add this script to the bonus sprite. Remember to change the orange count to 5
  • 32. Create a ‘Game Over’ screen Create a new background by clicking on copy Click on Edit on background 2 Add the text Game Over
  • 33. Game over script Add the final script to the stage to finish the game
  • 34. plenary • Write down what you have done today on your game. • Write down what scripts you have used an try to explain how one of them works.