0% found this document useful (0 votes)
28 views13 pages

Session 4

This document discusses an introduction to sequential programming in Scratch using motion blocks. It covers movement commands like move() steps, turn commands, and has examples of class activities like creating a clock, making a sprite turn and move to create an illusion, and simulating earth's movement around the sun.

Uploaded by

svchouhan4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views13 pages

Session 4

This document discusses an introduction to sequential programming in Scratch using motion blocks. It covers movement commands like move() steps, turn commands, and has examples of class activities like creating a clock, making a sprite turn and move to create an illusion, and simulating earth's movement around the sun.

Uploaded by

svchouhan4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Session 4

Introduction to sequential programming in Scratch using motion


block

Introduction to sequential programming:-


Sequential programming is simply programming a computer to do a series
of tasks one after another in a given sequence. In this generally there is a
trigger which starts the program and all the tasks arranged in sequence to
achieve a desired outcome. This is majorly used in creating simple
animations.

Movement command:-
The movement command is move () steps command. It is found in , motion block,
this command will move the sprite in the direction in which it is
pointing.

The number of steps can be specified in the empty space and it


will move the sprite by the same number of pixels.

For example:
- move (10) steps command will move the sprite by 10 pixels in the direction in
which the sprite is pointing.
Input:- move (10) steps Output:- Moves forward

- move (-10) steps command will move the sprite by 10 pixels but in the opposite
direction in which the sprite is pointing.
Input:- move (-10) steps Output:- Moves backward
Turn commands:-

Turn command has both clockwise and anti-clockwise rotation. It turns/rotates in the
angle specified.

Recall Test

What is a sprite?

The two dimensional cartoon images on the stage are called as


sprites

What is a backdrop?

A backdrop is the background image on the stage.

What is a stage?
A stage is the rectangular screen where you can see the project
run

What is a sprite control area?

An area below the stage where you control the sprite visibility,
size, name , direction and location

What is a costume panel?

Here you can see the different costumes available for a sprite.

Concept test:

What are motion blocks?

Motion block commands are used to move the sprite on the stage,
like running, jumping, falling etc.
What are stack blocks?

A Stack block is a rectangular block that is shaped to fit above


and below other blocks. Stack blocks make up the majority of the
blocks available in Scratch.

What are the three different modes of set rotation style


command?

What are the two types of turn command?


Topic for the session

Class Activity-1:

Edward went to the park with his friends.While playing in park


Edward broke his watch.Edward wants to create a clock to see
the tickling time on clock.Create project in scratch to help edward
create clock.
-Design a clock sprite.
-Add code for sprite tickling.
Painting a clock using the scratch paint editor.

Commands for the seconds hand


Class Activity-2:
Hello my name is illusion and I have been assigned with a task to
turn and move. I hope It is not difficult for me to complete the task.
Please help me finish the task.
-Add beautiful background.
-Paint a new sprite.
-Code to turn and move commands together to see an illusion.
Class Activity 3:
Edward wants to create a science project on the space world.Edward
wants to understand about the earth and sun’s movement in space.Let’s
create a project in scratch to make Edward understand how earth revolves
around the sun.

-Add space background.

-Add sun and earth sprite.

-Add code to rotate earth sprite around the sun.


Class Activity-4:
Edward is not serious about his health.Edward doesn’t know how
to exercise.Let’s create a robot in scratch to show Edward how
exercise should be done daily as a part of morning routine.
-Add background.
-Paint a robot sprite.
-Add code to make robot exercise.
Home assignment :

1.Moving at different speeds - for each sprite give different speed


values by changing move () steps or by adding wait () seconds
command, making all of them move left and right on the screen
continuously.
2. Try the project with different sprites by giving turn and move command
together inside the forever loop and see the animations
3.Make your own space world-Create a project in which you can draw the
planets or stars n make them move n turn at different speeds.

You might also like