Grade 6 Rosary Sisters’ High School
13/3/2023
Teacher: Tala Tams
Beit-Hanina/ Jerusalem
Chapter 2 – Programming using Scratch
To change the color of the sprite and the color of the backdrop:
Choose change color effect by (25) block from category looks drag
and drop the block in the script area. This block changes the color of the sprite and the color of the backdrop.
You can change the number in the block.
Example1: When the go button is clicked, the sprite or the backdrop will
change its color by 30 effect (quickly).
Example2, the sprite or the backdrop will
change its color by 1 effect (slowly) forever.
To set the size of the sprite;
Choose set size to (100) % block from category looks drag and drop the
block in the script area. This block set the size of the sprite to the specific number.
You can change the number in the block.
Example: When the go button is clicked, the sprite size is set to 40.
To change the size of the sprite;
Choose change size by (10) block from category looks drag and drop the
block in the script area. This block changes the size of the sprite (make it larger).
You can change the number in the block.
Example1: When the go button is clicked, the sprite size will increase by 30.
Example2: When the go button is clicked, the sprite size is set to 60
then continually and forever it will wait for 2 seconds and get larger by 30 degree.
1
Adding animation to the sprite:
a) To add animation to the sprite we keep changing its costumes
1. Add a sprite that has more than one costume. Each costume has its
own name.
For example, the sprite Ballerina has 4 costumes:
Ballerina-a, Ballerina-b, Ballerina-c, Ballerina-d.
2. Choose next costume block from
category looks drag and drop the block in the script area.
This block changes the costume of the sprite to the next costume in the
Costume list. (At the end of the costume list, jumps back to first costume).
Example: When the go button is clicked,
forever, the sprite costume will change to the
next costume and wait for one second.
b) To add animation to the sprite by switching to a specific costume:
Choose switch costume to () block from category looks
drag and drop the block in the script area.
This block changes the look of a sprite to the specified costume.
Example: When the go button is clicked,
the sprite costume will switch to (ballerina - c)
then the sprite will move forward 10 steps, wait 1 second
then the sprite costume will switch to (ballerina - a)
To show a sprite:
Choose show block from category looks drag and drop the block in the script area.
This block shows the sprite, and makes the sprite appear on the stage.
2
To hide a sprite:
Choose hide block from category looks drag and drop the block in the script area. This
block hides the sprite; makes the sprite disappear from the stage
Example: When the go button is clicked, the sprite will appear (show),
move forward 10 steps, say hello for 2 seconds then it will disappear (hide).