Motion Blocks
Motion Blocks
• What is coding?
• How do I make my
character move using code?
Problem solving
• Identify, define, and analyze a problem
• How to brush your teeth?
• Identify the problem: You need to brush your
teeth.
• Break it into steps: Get your toothbrush, put
toothpaste on it, brush for 2 minutes, rinse
Activity
• How to cross the road?
• “How to pack a school bag?”
What is computer
programming/coding
??
Coding/programming is…
• Writing a list of instructions that you
want the computer to follow in a
certain order.
Scratch
• One program that allows us to make
SIMPLE games/videos/stories/etc.
• Gives us the tools to make our own
programme.
EXAMPLE
• Scratch works like LEGO for programming. Just like you snap LEGO bricks
together to build something, in Scratch, you snap blocks of code together
to create animations, games, and stories.“
• Building a LEGO Tower: If you want to make a tall LEGO tower, you snap
blocks on top of each other. Similarly, in Scratch, you snap blocks of code
to make your character (called a sprite) perform actions like walking,
jumping, or talking.
Professional Code
Scratch Code
Uses blocks
instead of
complicated
numbers or
words
See what Scratch is all
about:
• https://scratch.mit.edu/about/
e
Stag
BASIC INTERFACE
B
De lock
scr
on ipti
Scr
i
Are pt
a
Sprite
List
Sprite
Start the Programme/Stop the
Programme
Scripts/Blocks of Code
Categories of Scripts/Blocks
• “How to add sprit?
• How to change background?
• Demo
X-Y coordinate
Scratch
Programming In Scratch!
Motion!
• Motion blocks are the blocks that control a
sprite's movement.
• There are 17 Motion blocks in Scratch 2.0 .
• Ex:-
Move () Steps — Moves the sprite forward
the amount of steps.
Motion!