SlideShare a Scribd company logo
1 of 29
SCRATCH: Tom And Jerry
BY AKHMAD ZAIMI
LEARN
SHARE
CONNECT
LINK DOWNLOAD SCRATCH
Pre-requisite Windows 10
Please install these softwares as the order:
1. Scratch:
https://downloads.scratch.mit.edu/desktop/Scratch%20Desktop%20S
etup%203.6.0.exe
Scratch Desktop
Panel
Block
Code / Script
Area
Stage /
Panggung
Sprite / Obyek
Panel Block
Panel
Block
Motion Looks
Example:
Move, change
direction, Go to a
position
Example:
Say somthing,
think, change
costume
Sound
Example:
Play sound,
change sound
Events
Example:
When Cat hit
mouse, green flag
clicked
Control
Example:
IF Cat hit mouse
what to do
Sensing
Example:
Condition Cat hit
mouse
WHAT ARE THEIR FUNCTION?
Panel Block
Panel
Block
Operators Variables
Example:
To calculate a
value, pick random
value
To store a value
My Blocks
Buat block sendiri
/ template
WHAT ARE THEIR FUNCTION?
Sprite / Obyek
> A character in the game
OK, Lets rock!
Game Flow
Test Game I: Sprint Cat
Test Game II: Sprint Donut
Test Game III: Donut hit cat and cat eat mouse
Test Game IV: Add Life, Points, Name
Test Game V: Screen Title
Steps make Game 1-2
Sprite Cat
1. Move Sprite Cat to left side and change size to “50”
2. Change Size to “50”
3. Add Motion > “move 10 steps”
4. Add Looks > “Say “Hello” for 2 secs”
5. Add Sounds > “play sound “Meow” until Done”
6. Add Events > “when “flag” clicked” on top of code block
7. Add Sensing > “ask “Whats your name?” and wait” put under Event
8. Test Game I
Sprite Donut
1. Add Sprite “Donut”
2. Change Size “50”
3. Click Sprite Donut > choose tab “Costume” > Duplicate “Donut”
4. Paint new Costume of Donut
Steps make Game 1-2
Sprite Donut
5. Back to Tab Code, Add Control > “wait 1 seconds”
6. Add Looks >“Next costume”
7. Add Control > “forever”, Move other blocks inside control
8. Add Events > “when flag clicked”
9. Add Control > “if ... Then”
10. Add Sensing > “key “space” pressed” then” as condition of Control
11. Test Game II
Steps make Game 3
Add Sprite Mouse and change size to “30”:
1. Add Events > “when flag clicked”
2. Add Control > “forever”
3. Add Motion > “set x to …” into Control 2
4. Add Operators > “pick random “-191” to “191”
5. Add Motion > “set y to …” into Control 2
6. Add Operators > “pick random “-131” to “131”
7. Add Looks > “show”
8. Add Control > “wait 5 seconds”
9. Add Looks > “hide”
10. Add Control > “wait 2 seconds”
180
-180
240-240
Screen Coordinate
x
y
x,y
Steps make Game 3
Sprite Cat:
1. Remove Motion > “move 10 steps”
2. Remove Motion > Add Looks > “Say “Hello” for 2 secs”
3. Remove Sounds > “play sound “Meow” until Done”
4. Keep Events > “when “flag” clicked”
5. Keep Sensing > “ask “Whats your name?” and wait”
6. Add Control > “forever” under Events 4
Put below Code block inside Control 6 “forever”
7. Add Control > “if .... Then”
8. Add Sensing > “key “up arrow” pressed” as condition of Control 7
9. Add Motions > “change y by 2” into inside Control 7
10. Add Control > “if .... Then”
11. Add Sensing > “key “down arrow” pressed” as condition of Control 10
12. Add Motions > “change y by -2” into inside Control 10
13. Add Control > “if .... Then”
14. Add Sensing > “key “left arrow” pressed” as condition of Control 13
15. Add Motions > “change x by -2” into inside Control 13
0
90
180
270
180
-180
240-240
Screen Coordinate
x
y
x,y
Direction
Steps make Game 3
Sprite Cat:
16. Add Control > “if .... Then”
17. Add Sensing > “key “right arrow” pressed” as condition of Control 16
18. Add Motions > “change x by 2” into inside Control 16
19. Add Control > “if … then”
20. Add Sensing > “touching mouse” as condition of Control 19
21. Add Looks > “say “Alhamdulillah” for 2 seconds” into inside Control 19
22. Add Control > “if … then”
23. Add Sensing > “touching donut” as condition of Control 22
24. Add Looks > “say “Astaghfirullah” for 0.5 seconds” into inside Control 22
Sprite Donut:
1. Keep Events > “when flag clicked”
2. Keep Control > “forever”
3. Remove Looks > “Next costume”
4. Remove Control > “if … then”
5. Add Motion > “point in direction “180” under Events 1
Steps make Game 3
Sprite Donut:
Put below Code block inside Control 2 “forever”
6. Add Motion > “move 5 steps”
7. Add Looks > “switch costume to “donut”
8. Add Control > “if … then”
9. Add Sensing > “touching “edge”’ as condition of Control 8
10. Add Motion > “set y to “127” into control 8
11. Add Motion > “set x to ….“ into control 8
12. Add Operators > “pick random “-180” to “180”” as value of Motion 11
13. Add Control > “if … then”
14. Add Sensing > “touching “Sprite1”’ as condition of Control 13
15. Add Looks > “Switch costume to “donut2” into Control 13
16. Add Control > “wait 1 second”
17. Add Motion > “set y to “127” into Control 13
Steps make Game 3
Sprite Donut:
Put below Code block inside Control 2 “forever”
18. Add Motion > “set x to ….“into Control 13
19. Add Operators > “pick random “-180” to “180”” as value of Motion 18
20. Test Game III
Screen Game 3
Steps make Game 4
Sprite Sprite1:
1. Make a Variable with name “Life” and set for All Sprites
2. Make a Variable with name “Points” and set for All Sprites
3. Make a Variable with name “name” and set for All Sprites
Put below code blocks under Event “when flag clicked”
1. Add Variable > “hide variable “name”
2. Move sensing > “ask “whats your name” and wait“ into here
3. Add Variable > “set name to ….”
4. Add Sensing > “answer” as a value of Variable 4
5. Add Event > “broadcast “startgame”
Put below code blocks under Event “when I receive “startgame”
1. Add Event > “when I receive “startgame”
2. Add Variable > “show variable “name”
3. Drag and move Control > “forever” into here
Steps make Game 4
Sprite Sprite1:
Put below code blocks under Event “when I receive “startgame”
4. Add Control > “if … then” inside Control “forever”
5. Add Operations >” … = 0 “ as condition of Control 4
6. Add Variable > “Life” as value Operation 5
7. Add Control > “stop all” into Control 4
8. Go to Control > “if “touching Donut” then”
9. Add Variable > “set “Life” to ….” under Looks “say Astaghfirullah for 0.5 seconds”
10. Add Operation > “variable “Life” - 1” as value of Variable 9
11. Go to Control > “if “touching mouse1” then”
12. Add Variable > “set “Points” to ….” under Looks “say Alhamdulillah for 2 seconds”
13. Add Operation > “variable “Points” + 1” as value of Variable 12
Steps make Game 4
Sprite Donut:
Put below code blocks under Event “when I receive “startgame”
1. Add Event > “when I receive startgame”
2. Move and drag code blocks start from Motion > “Point in direction 180” into here
Put below code blocks under Event “when flag clicked”
1. Add Looks> “switch costume to donut”
Sprite Mouse1:
Put below code blocks under Event “when I receive “startgame”
1. Add Event > “when I receive startgame”
2. Add Variable > “set Life to 3
3. Add Variable > “set Points to 0
4. Move and drag code blocks start from Control> “forever” into here
Test Game IV
Screen Game 4
Steps make Game 5
Sprite Donut:
Put below code blocks under Event “when I receive “startgame”
1. Insert Looks > “show” under Event
Put below code blocks under Event “when flag clicked”
1. Insert Looks > “hide” under Event
2. Add Motion > “set y to 127”
3. Add Motion > “set x to ….”
4. Add Operations > “pick random -180 to 180” as value of Motion 3
Sprite Mouse1:
Put below code blocks under Event “when I receive “startgame”
1. Insert Looks > “show” under Event
Put below code blocks under Event “when flag received”
1. Insert Looks > “hide” under Event
Steps make Game 5
Sprite Sprite1:
1. Click Stage and click tab “Backdrops”
2. Add New Backdrops “Room 2”
3. Click Text and give Game Tittle “Kejar Tikus, Awas Donat”
4. You can add more text
5. Once finished, back to Tab “Code”
6. Choose “Sprite 1”
Put below code blocks under Event “when flag received”
1. Insert Looks > “switch backdrops to “Room 2”” under Event
2. Insert Looks > “hide” under Variable “hide variable “name””
3. Add Control > “wait until ….”
4. Add Sensing > “key “any” pressed” as value of Control 3
Put below code blocks under Event “when I received “Startgame””
1. Insert Looks > “switch backrdrops to “Wall 1”” under Event
2. Insert Looks > “show” under variable “show variable “name””
Test Game V
Screen Game 5
Hack the Code
Stage Game 1 Stage Game 2
Stage Game 3 (Sprite1)
Hack the CodeStage Game 3 (Donut) Stage Game 3 (Mouse1)
Hack the CodeStage Game 4 (Sprite1) Stage Game 4 (Donut) Stage Game 4 (Mouse1)
Hack the CodeStage Game 5 (Sprite1) Stage Game 5 (Donut) Stage Game 5 (Mouse1)
(partial block)
Screen: X and Y
Coordinate
Sponsored By
Made a Bag by Heart
Question?
Contact me: Akhmad Zaimi
Email: djimie@gmail.com

More Related Content

What's hot

Credit card fraud detection using python machine learning
Credit card fraud detection using python machine learningCredit card fraud detection using python machine learning
Credit card fraud detection using python machine learningSandeep Garg
 
Credit card fraud detection
Credit card fraud detectionCredit card fraud detection
Credit card fraud detectionkalpesh1908
 
Current sensor
Current sensorCurrent sensor
Current sensormiracu
 
Linear Regression Analysis | Linear Regression in Python | Machine Learning A...
Linear Regression Analysis | Linear Regression in Python | Machine Learning A...Linear Regression Analysis | Linear Regression in Python | Machine Learning A...
Linear Regression Analysis | Linear Regression in Python | Machine Learning A...Simplilearn
 
Machine Learning Project
Machine Learning ProjectMachine Learning Project
Machine Learning ProjectAbhishek Singh
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data AnalyticsRohithND
 
Sports Analytics in the Era of Big Data and Data Science
Sports Analytics in the Era of Big Data and Data ScienceSports Analytics in the Era of Big Data and Data Science
Sports Analytics in the Era of Big Data and Data ScienceKonstantinos Pelechrinis
 
Introduction of Data Science
Introduction of Data ScienceIntroduction of Data Science
Introduction of Data ScienceJason Geng
 
Triangles and its properties
Triangles  and its propertiesTriangles  and its properties
Triangles and its propertiesRishabh Jain
 
Data Handling class 7.pptx
Data Handling class 7.pptxData Handling class 7.pptx
Data Handling class 7.pptxKirtiChauhan62
 
introduction to data science
introduction to data scienceintroduction to data science
introduction to data sciencebhavesh lande
 
Introduction to Data Science and Analytics
Introduction to Data Science and AnalyticsIntroduction to Data Science and Analytics
Introduction to Data Science and AnalyticsSrinath Perera
 
Mensuration
MensurationMensuration
Mensurationitutor
 
DMTM Lecture 19 Data exploration
DMTM Lecture 19 Data explorationDMTM Lecture 19 Data exploration
DMTM Lecture 19 Data explorationPier Luca Lanzi
 
Intro to Data Science for Enterprise Big Data
Intro to Data Science for Enterprise Big DataIntro to Data Science for Enterprise Big Data
Intro to Data Science for Enterprise Big DataPaco Nathan
 
Importance of Big data for your Business
Importance of Big data for your BusinessImportance of Big data for your Business
Importance of Big data for your Businessazuyo.com
 
Multi-armed Bandits
Multi-armed BanditsMulti-armed Bandits
Multi-armed BanditsDongmin Lee
 

What's hot (20)

Credit card fraud detection using python machine learning
Credit card fraud detection using python machine learningCredit card fraud detection using python machine learning
Credit card fraud detection using python machine learning
 
Credit card fraud detection
Credit card fraud detectionCredit card fraud detection
Credit card fraud detection
 
Current sensor
Current sensorCurrent sensor
Current sensor
 
Linear Regression Analysis | Linear Regression in Python | Machine Learning A...
Linear Regression Analysis | Linear Regression in Python | Machine Learning A...Linear Regression Analysis | Linear Regression in Python | Machine Learning A...
Linear Regression Analysis | Linear Regression in Python | Machine Learning A...
 
Speed measurement, tachometer
Speed measurement, tachometerSpeed measurement, tachometer
Speed measurement, tachometer
 
Machine Learning Project
Machine Learning ProjectMachine Learning Project
Machine Learning Project
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data Analytics
 
Sports Analytics in the Era of Big Data and Data Science
Sports Analytics in the Era of Big Data and Data ScienceSports Analytics in the Era of Big Data and Data Science
Sports Analytics in the Era of Big Data and Data Science
 
Introduction of Data Science
Introduction of Data ScienceIntroduction of Data Science
Introduction of Data Science
 
Triangles and its properties
Triangles  and its propertiesTriangles  and its properties
Triangles and its properties
 
Data Handling class 7.pptx
Data Handling class 7.pptxData Handling class 7.pptx
Data Handling class 7.pptx
 
introduction to data science
introduction to data scienceintroduction to data science
introduction to data science
 
Introduction to Data Science and Analytics
Introduction to Data Science and AnalyticsIntroduction to Data Science and Analytics
Introduction to Data Science and Analytics
 
Mensuration
MensurationMensuration
Mensuration
 
DMTM Lecture 19 Data exploration
DMTM Lecture 19 Data explorationDMTM Lecture 19 Data exploration
DMTM Lecture 19 Data exploration
 
Statistics and data science
Statistics and data scienceStatistics and data science
Statistics and data science
 
Intro to Data Science for Enterprise Big Data
Intro to Data Science for Enterprise Big DataIntro to Data Science for Enterprise Big Data
Intro to Data Science for Enterprise Big Data
 
Importance of Big data for your Business
Importance of Big data for your BusinessImportance of Big data for your Business
Importance of Big data for your Business
 
Data Science
Data ScienceData Science
Data Science
 
Multi-armed Bandits
Multi-armed BanditsMulti-armed Bandits
Multi-armed Bandits
 

Similar to Scratch Tom and Jerry

Run and jump tutorial (part 3) behaviours
Run and jump tutorial (part 3)   behavioursRun and jump tutorial (part 3)   behaviours
Run and jump tutorial (part 3) behavioursMuhd Basheer
 
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.Kobkrit Viriyayudhakorn
 
Panduan platform game dengan Construct 2
Panduan platform game dengan Construct 2Panduan platform game dengan Construct 2
Panduan platform game dengan Construct 2Wahyu Purnomo
 
Introduction to Unity3D and Building your First Game
Introduction to Unity3D and Building your First GameIntroduction to Unity3D and Building your First Game
Introduction to Unity3D and Building your First GameSarah Sexton
 
Building your first game in Unity 3d by Sarah Sexton
Building your first game in Unity 3d  by Sarah SextonBuilding your first game in Unity 3d  by Sarah Sexton
Building your first game in Unity 3d by Sarah SextonBeMyApp
 
The following GUI is displayed once the application startsThe sug.pdf
The following GUI is displayed once the application startsThe sug.pdfThe following GUI is displayed once the application startsThe sug.pdf
The following GUI is displayed once the application startsThe sug.pdfarihantsherwani
 
The Ring programming language version 1.7 book - Part 54 of 196
The Ring programming language version 1.7 book - Part 54 of 196The Ring programming language version 1.7 book - Part 54 of 196
The Ring programming language version 1.7 book - Part 54 of 196Mahmoud Samir Fayed
 
Unity Google VR Cardboard Deployment on iOS and Android
Unity Google VR Cardboard Deployment on iOS and AndroidUnity Google VR Cardboard Deployment on iOS and Android
Unity Google VR Cardboard Deployment on iOS and AndroidKobkrit Viriyayudhakorn
 
Actionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 6 InteractivityActionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 6 InteractivityOUM SAOKOSAL
 
Mobile game testing report
Mobile game testing reportMobile game testing report
Mobile game testing reportQA Madness
 
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
 
Construct 2 Platformer: Step by Step
Construct 2 Platformer: Step by StepConstruct 2 Platformer: Step by Step
Construct 2 Platformer: Step by StepShahed Chowdhuri
 
The Ring programming language version 1.5.4 book - Part 49 of 185
The Ring programming language version 1.5.4 book - Part 49 of 185The Ring programming language version 1.5.4 book - Part 49 of 185
The Ring programming language version 1.5.4 book - Part 49 of 185Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 60 of 212
The Ring programming language version 1.10 book - Part 60 of 212The Ring programming language version 1.10 book - Part 60 of 212
The Ring programming language version 1.10 book - Part 60 of 212Mahmoud Samir Fayed
 
Learn awesome hacking tricks
Learn awesome hacking tricksLearn awesome hacking tricks
Learn awesome hacking tricksSudhanshu Mishra
 

Similar to Scratch Tom and Jerry (20)

Run and jump tutorial (part 3) behaviours
Run and jump tutorial (part 3)   behavioursRun and jump tutorial (part 3)   behaviours
Run and jump tutorial (part 3) behaviours
 
Game Salad Study
Game Salad StudyGame Salad Study
Game Salad Study
 
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
ITS488 Lecture 6: Music and Sound Effect & GVR Try out.
 
Panduan platform game dengan Construct 2
Panduan platform game dengan Construct 2Panduan platform game dengan Construct 2
Panduan platform game dengan Construct 2
 
Spf chapter10 events
Spf chapter10 eventsSpf chapter10 events
Spf chapter10 events
 
Introduction to Unity3D and Building your First Game
Introduction to Unity3D and Building your First GameIntroduction to Unity3D and Building your First Game
Introduction to Unity3D and Building your First Game
 
Building your first game in Unity 3d by Sarah Sexton
Building your first game in Unity 3d  by Sarah SextonBuilding your first game in Unity 3d  by Sarah Sexton
Building your first game in Unity 3d by Sarah Sexton
 
The following GUI is displayed once the application startsThe sug.pdf
The following GUI is displayed once the application startsThe sug.pdfThe following GUI is displayed once the application startsThe sug.pdf
The following GUI is displayed once the application startsThe sug.pdf
 
Pygame presentation
Pygame presentationPygame presentation
Pygame presentation
 
The Ring programming language version 1.7 book - Part 54 of 196
The Ring programming language version 1.7 book - Part 54 of 196The Ring programming language version 1.7 book - Part 54 of 196
The Ring programming language version 1.7 book - Part 54 of 196
 
Ninja Cat Flyer - 3 of 6
Ninja Cat Flyer - 3 of 6Ninja Cat Flyer - 3 of 6
Ninja Cat Flyer - 3 of 6
 
Unity Google VR Cardboard Deployment on iOS and Android
Unity Google VR Cardboard Deployment on iOS and AndroidUnity Google VR Cardboard Deployment on iOS and Android
Unity Google VR Cardboard Deployment on iOS and Android
 
Actionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 6 InteractivityActionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 6 Interactivity
 
Mobile game testing report
Mobile game testing reportMobile game testing report
Mobile game testing report
 
Tic tac toe code
Tic tac toe codeTic tac toe code
Tic tac toe code
 
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
 
Construct 2 Platformer: Step by Step
Construct 2 Platformer: Step by StepConstruct 2 Platformer: Step by Step
Construct 2 Platformer: Step by Step
 
The Ring programming language version 1.5.4 book - Part 49 of 185
The Ring programming language version 1.5.4 book - Part 49 of 185The Ring programming language version 1.5.4 book - Part 49 of 185
The Ring programming language version 1.5.4 book - Part 49 of 185
 
The Ring programming language version 1.10 book - Part 60 of 212
The Ring programming language version 1.10 book - Part 60 of 212The Ring programming language version 1.10 book - Part 60 of 212
The Ring programming language version 1.10 book - Part 60 of 212
 
Learn awesome hacking tricks
Learn awesome hacking tricksLearn awesome hacking tricks
Learn awesome hacking tricks
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Scratch Tom and Jerry

  • 1. SCRATCH: Tom And Jerry BY AKHMAD ZAIMI LEARN SHARE CONNECT
  • 2. LINK DOWNLOAD SCRATCH Pre-requisite Windows 10 Please install these softwares as the order: 1. Scratch: https://downloads.scratch.mit.edu/desktop/Scratch%20Desktop%20S etup%203.6.0.exe
  • 3. Scratch Desktop Panel Block Code / Script Area Stage / Panggung Sprite / Obyek
  • 4. Panel Block Panel Block Motion Looks Example: Move, change direction, Go to a position Example: Say somthing, think, change costume Sound Example: Play sound, change sound Events Example: When Cat hit mouse, green flag clicked Control Example: IF Cat hit mouse what to do Sensing Example: Condition Cat hit mouse WHAT ARE THEIR FUNCTION?
  • 5. Panel Block Panel Block Operators Variables Example: To calculate a value, pick random value To store a value My Blocks Buat block sendiri / template WHAT ARE THEIR FUNCTION?
  • 6. Sprite / Obyek > A character in the game
  • 7. OK, Lets rock! Game Flow Test Game I: Sprint Cat Test Game II: Sprint Donut Test Game III: Donut hit cat and cat eat mouse Test Game IV: Add Life, Points, Name Test Game V: Screen Title
  • 8. Steps make Game 1-2 Sprite Cat 1. Move Sprite Cat to left side and change size to “50” 2. Change Size to “50” 3. Add Motion > “move 10 steps” 4. Add Looks > “Say “Hello” for 2 secs” 5. Add Sounds > “play sound “Meow” until Done” 6. Add Events > “when “flag” clicked” on top of code block 7. Add Sensing > “ask “Whats your name?” and wait” put under Event 8. Test Game I Sprite Donut 1. Add Sprite “Donut” 2. Change Size “50” 3. Click Sprite Donut > choose tab “Costume” > Duplicate “Donut” 4. Paint new Costume of Donut
  • 9. Steps make Game 1-2 Sprite Donut 5. Back to Tab Code, Add Control > “wait 1 seconds” 6. Add Looks >“Next costume” 7. Add Control > “forever”, Move other blocks inside control 8. Add Events > “when flag clicked” 9. Add Control > “if ... Then” 10. Add Sensing > “key “space” pressed” then” as condition of Control 11. Test Game II
  • 10. Steps make Game 3 Add Sprite Mouse and change size to “30”: 1. Add Events > “when flag clicked” 2. Add Control > “forever” 3. Add Motion > “set x to …” into Control 2 4. Add Operators > “pick random “-191” to “191” 5. Add Motion > “set y to …” into Control 2 6. Add Operators > “pick random “-131” to “131” 7. Add Looks > “show” 8. Add Control > “wait 5 seconds” 9. Add Looks > “hide” 10. Add Control > “wait 2 seconds” 180 -180 240-240 Screen Coordinate x y x,y
  • 11. Steps make Game 3 Sprite Cat: 1. Remove Motion > “move 10 steps” 2. Remove Motion > Add Looks > “Say “Hello” for 2 secs” 3. Remove Sounds > “play sound “Meow” until Done” 4. Keep Events > “when “flag” clicked” 5. Keep Sensing > “ask “Whats your name?” and wait” 6. Add Control > “forever” under Events 4 Put below Code block inside Control 6 “forever” 7. Add Control > “if .... Then” 8. Add Sensing > “key “up arrow” pressed” as condition of Control 7 9. Add Motions > “change y by 2” into inside Control 7 10. Add Control > “if .... Then” 11. Add Sensing > “key “down arrow” pressed” as condition of Control 10 12. Add Motions > “change y by -2” into inside Control 10 13. Add Control > “if .... Then” 14. Add Sensing > “key “left arrow” pressed” as condition of Control 13 15. Add Motions > “change x by -2” into inside Control 13 0 90 180 270 180 -180 240-240 Screen Coordinate x y x,y Direction
  • 12. Steps make Game 3 Sprite Cat: 16. Add Control > “if .... Then” 17. Add Sensing > “key “right arrow” pressed” as condition of Control 16 18. Add Motions > “change x by 2” into inside Control 16 19. Add Control > “if … then” 20. Add Sensing > “touching mouse” as condition of Control 19 21. Add Looks > “say “Alhamdulillah” for 2 seconds” into inside Control 19 22. Add Control > “if … then” 23. Add Sensing > “touching donut” as condition of Control 22 24. Add Looks > “say “Astaghfirullah” for 0.5 seconds” into inside Control 22 Sprite Donut: 1. Keep Events > “when flag clicked” 2. Keep Control > “forever” 3. Remove Looks > “Next costume” 4. Remove Control > “if … then” 5. Add Motion > “point in direction “180” under Events 1
  • 13. Steps make Game 3 Sprite Donut: Put below Code block inside Control 2 “forever” 6. Add Motion > “move 5 steps” 7. Add Looks > “switch costume to “donut” 8. Add Control > “if … then” 9. Add Sensing > “touching “edge”’ as condition of Control 8 10. Add Motion > “set y to “127” into control 8 11. Add Motion > “set x to ….“ into control 8 12. Add Operators > “pick random “-180” to “180”” as value of Motion 11 13. Add Control > “if … then” 14. Add Sensing > “touching “Sprite1”’ as condition of Control 13 15. Add Looks > “Switch costume to “donut2” into Control 13 16. Add Control > “wait 1 second” 17. Add Motion > “set y to “127” into Control 13
  • 14. Steps make Game 3 Sprite Donut: Put below Code block inside Control 2 “forever” 18. Add Motion > “set x to ….“into Control 13 19. Add Operators > “pick random “-180” to “180”” as value of Motion 18 20. Test Game III
  • 16. Steps make Game 4 Sprite Sprite1: 1. Make a Variable with name “Life” and set for All Sprites 2. Make a Variable with name “Points” and set for All Sprites 3. Make a Variable with name “name” and set for All Sprites Put below code blocks under Event “when flag clicked” 1. Add Variable > “hide variable “name” 2. Move sensing > “ask “whats your name” and wait“ into here 3. Add Variable > “set name to ….” 4. Add Sensing > “answer” as a value of Variable 4 5. Add Event > “broadcast “startgame” Put below code blocks under Event “when I receive “startgame” 1. Add Event > “when I receive “startgame” 2. Add Variable > “show variable “name” 3. Drag and move Control > “forever” into here
  • 17. Steps make Game 4 Sprite Sprite1: Put below code blocks under Event “when I receive “startgame” 4. Add Control > “if … then” inside Control “forever” 5. Add Operations >” … = 0 “ as condition of Control 4 6. Add Variable > “Life” as value Operation 5 7. Add Control > “stop all” into Control 4 8. Go to Control > “if “touching Donut” then” 9. Add Variable > “set “Life” to ….” under Looks “say Astaghfirullah for 0.5 seconds” 10. Add Operation > “variable “Life” - 1” as value of Variable 9 11. Go to Control > “if “touching mouse1” then” 12. Add Variable > “set “Points” to ….” under Looks “say Alhamdulillah for 2 seconds” 13. Add Operation > “variable “Points” + 1” as value of Variable 12
  • 18. Steps make Game 4 Sprite Donut: Put below code blocks under Event “when I receive “startgame” 1. Add Event > “when I receive startgame” 2. Move and drag code blocks start from Motion > “Point in direction 180” into here Put below code blocks under Event “when flag clicked” 1. Add Looks> “switch costume to donut” Sprite Mouse1: Put below code blocks under Event “when I receive “startgame” 1. Add Event > “when I receive startgame” 2. Add Variable > “set Life to 3 3. Add Variable > “set Points to 0 4. Move and drag code blocks start from Control> “forever” into here Test Game IV
  • 20. Steps make Game 5 Sprite Donut: Put below code blocks under Event “when I receive “startgame” 1. Insert Looks > “show” under Event Put below code blocks under Event “when flag clicked” 1. Insert Looks > “hide” under Event 2. Add Motion > “set y to 127” 3. Add Motion > “set x to ….” 4. Add Operations > “pick random -180 to 180” as value of Motion 3 Sprite Mouse1: Put below code blocks under Event “when I receive “startgame” 1. Insert Looks > “show” under Event Put below code blocks under Event “when flag received” 1. Insert Looks > “hide” under Event
  • 21. Steps make Game 5 Sprite Sprite1: 1. Click Stage and click tab “Backdrops” 2. Add New Backdrops “Room 2” 3. Click Text and give Game Tittle “Kejar Tikus, Awas Donat” 4. You can add more text 5. Once finished, back to Tab “Code” 6. Choose “Sprite 1” Put below code blocks under Event “when flag received” 1. Insert Looks > “switch backdrops to “Room 2”” under Event 2. Insert Looks > “hide” under Variable “hide variable “name”” 3. Add Control > “wait until ….” 4. Add Sensing > “key “any” pressed” as value of Control 3 Put below code blocks under Event “when I received “Startgame”” 1. Insert Looks > “switch backrdrops to “Wall 1”” under Event 2. Insert Looks > “show” under variable “show variable “name”” Test Game V
  • 23. Hack the Code Stage Game 1 Stage Game 2 Stage Game 3 (Sprite1)
  • 24. Hack the CodeStage Game 3 (Donut) Stage Game 3 (Mouse1)
  • 25. Hack the CodeStage Game 4 (Sprite1) Stage Game 4 (Donut) Stage Game 4 (Mouse1)
  • 26. Hack the CodeStage Game 5 (Sprite1) Stage Game 5 (Donut) Stage Game 5 (Mouse1) (partial block)
  • 27. Screen: X and Y Coordinate
  • 28. Sponsored By Made a Bag by Heart
  • 29. Question? Contact me: Akhmad Zaimi Email: djimie@gmail.com