Scratch: Drawing a Square, Square Variable exercise

Demo:
1. Visit Scratch.mit.edu or open scratch version 3
2. Add the pen addon to the scratch project
3. Experiment with the blocks that use the pen
4. Draw a square of side 50 units

Scratch Demo: https://scratch.mit.edu/projects/650520375

Video Demo:

Task: Prompt the user to enter a value and store it in a variable called “Side”. Proceed to draw a square with a length of side equal to “Side”. (Assume the user enters a size that can fit in the stage area.)

Updates to this post

2026-09-06: Added embedded scratch project.

© 2022 islandclass.org

Presentation Software – Classroom Instructions

Main Content:

1) Read the information found here: https://islandclass.org/2020/08/20/presentation-software/

2) Follow the video tutorial found here: https://islandclass.org/2020/09/16/video-series-using-powerpoint-presentation-software/

Further Additional Content:
______________________________________________________________________________

The ministry of education has provided the following task and youtube videos:

https://support.microsoft.com/en-us/office/create-a-presentation-in-powerpoint-422250f8-5721-4cea-92cc-202fa7b89617

INSTRUCTIONS FOR STUDENTS


1) Follow the instruction from above until “Saving” (Information from first link: https://support.microsoft.com/en-us/office/create-a-presentation-in-powerpoint-422250f8-5721-4cea-92cc-202fa7b89617 )”

2) View the videos (Posted above) :
https://www.youtube.com/watch?v=Q8hJvppObGQ
https://www.youtube.com/watch?v=fzuHplbKD9A

3) Print your presentation (This step is optional)

______________________________________________________________________________
Text book resources:

JUST CLICK 3RD EDITION

Just Click 3rd Edition pg 92 to 97
Just Click 3rd Edition pg 98 to 99 (optional)

COMPUTING STUDENT BOOK 3
Oxford International Lower Secondary Computing Student Book 3 , Chapter 5

© 2022 islandclass.org

Group Project – Create a Game in Scratch!

Using Scratch Online, create a game on a topic of your interest. Please include the following:
1. Name of the game 1 mk
2. Instructions on how to use the game 1 mk
3. Good use of color and stage area 1 mk
4. Moving a sprite with the keyboard / mouse 2 mks
5. At least 1 loop (e.g. using the forever or repeat block) 2 mks
6. At least 1 If block (e.g. using an If block) 2 mks
7. At least 1 Variable (e.g. score) 2 mks
8. At least 1 Sensing block 2 mks
9. At least 1 Say block 2 mks

-SUBMIT A WORD PROCESSING DOCUMENT WHICH CONTAINTS THE INSTRUCTIONS AND A LINK TO THE GAME
-Keep all work PG13
-ONLY GROUP LEADERS ARE ALLOWED TO SUBMIT

See the video as a general guide on submission instructions. (Recorded previously on 2022-

© 2022 islandclass.org

Spreadsheet Assignment 1

Excel File

1. Download the attached Excel file and complete the tasks listed in the sheet TUTORIAL TASKS. The Tasks are to be completed in sheet 1. Note, these tasks must be accomplished in Microsoft Excel and not google sheets. (SEE ATTACHED VIDEO INSTRUCTIONS).

2. After accomplishing the tasks, save your work.
3. Rename your File in the format “Last name, First name – Excel Exam”

3. Attach this file to to assignment and turn in your  submission before the deadline date.

Video instructions

https://youtu.be/YWw4rJDwKv0

© 2022 islandclass.org

NCSE ICT – Scratch Programming – Creating interactive sprites

In this example, we create a sprite which asks for you to enter a subject mark and tells you the grade.

Grade ranges are shown below:

A76 to 100
B50 to 75
C40 to 49
DFail

We will be using a variable to store the users input.

Also, we will used some “if” blocks and logical operators to produce the grade.

See the blocks in the project below:

https://scratch.mit.edu/projects/629271195

Exercise

If someone enters an erroneous mark, e.g 1000 , the program dosen’t say anything to the user.

Copy or remix the project and Add blocks to say “you’ve entered an incorrect mark” if the user enters a mark higher than 100 or a mark less than 0.

(Hint: an IF block and an OR logical operator may be useful for solving this problem!)

© 2022 islandclass.org

NCSE ICT – Scratch Programming – Animating Sprites using loops and the Broadcast system

See the examples below on how animation can be achieved by switching costumes using loops:

Sprite Animation 1 – Walk in place

Sprite Animation 2 Glide

Sprite Animation 3 – Walk and glide

Exercise

  1. After looking at the blocks in the project above, create a similar animation using a different sprite.
  2. Describe in your own words how the broadcast and receive blocks work.

© 2022 islandclass.org

NCSE ICT – Scratch Programming – Manipulating sprites

Tutorial using scratch cards

Follow the tutorials in this pdf document (scratch2cards_jan2013.pdf)

https://drive.google.com/file/d/1sG6pRMYRAmM5VP4WOSeYXAtWm81Ietdo/view?usp=share_link

The above file and 2 others are in the following google drive folders for your reference:

https://drive.google.com/drive/folders/1-OElNjqODc1RVdUFGVe1LXuR6kJYAE_D?usp=share_link

Changing color

Color Example 1

Color Example 2


Credit: The following section was taken from : https://en.scratch-wiki.info/wiki/Graphic_Effect#Color

Color

One costume can take on 200 different color-schemes using the color effect. The “real” effect of the color is equal to the numeric/stored effect modulo 200. This means that changecoloreffectby200 will do nothing since the rendered color will be the same.

“Change color effect” will have a little apparent effect on sprites colored black, as black is a desaturated color rather than its own hue. To see the color effect on a black sprite, increase its brightness first. Similarly, sprites colored white will have little noticeable effect when the “Change color effect” block is used.

Changing of colors using the Color Effect block

These are the color changes from Scratch Cat Orange (0 Color Effect) to itself when it restarts at the 200th positive value of the color effect.

  • 1-10 = Orange to light yellow
  • 10-20 = Light yellow to a yellowish-green
  • 20-30 = Yellowish-green to a medium green color
  • 30-40 = Medium green to a thick, green color.
  • 40-50 = No considerate change.
  • 50-60 = A greenish-light cyan color.
  • 60-70 = A lightly-blue tinted green to a fully light cyan color.
  • 70-80 = A light cyan color to a light blue color.
  • 80-90 = A light blue to a medium-dark blue.
  • 90-100 = A medium-dark blue a thick dark blue.
  • 100-110 = Darker and darker blue.
  • 110-120 = A slowly more purplish-blue.
  • 120-135 = Violet to Indigo
  • 135-160 = A gradually mixed pink and purple.
  • 160-170 = A gradually pinkish-red color.
  • 170-180 = A thick red color.
  • 180-190 = A dark orange color
  • 190-200 = Identical to the original color at this point.

For other colors, simply start at the most similar color effect. If you are still not sure, try changing the color effect until it matches one of these descriptions.

Credit: The above section was taken from : https://en.scratch-wiki.info/wiki/Graphic_Effect#Color


Moving a sprite to music (By changing costumes)

To accomplish this, we set up a scenario where:

  1. Music is played in the background
  2. We cycle through a sprite’s costumes using a forever block

See: Moving a sprite to music (By changing costumes) example. Make sure to investigate the sound tab to see how sounds are imported and used.


Credit: The section below was taken from: https://en.scratch-wiki.info/wiki/Costume#Uses Be sure to follow the link to view additional examples of how this block can be used

Blocks

There are four blocks that relate to costumes, which are as follows:

The first three blocks can be located in the Looks block section, while the fourth can be found in the Sensing block area.

Uses

  • The first block is used for the sprite to transfer its look between any of its costumes.
  • The second block is mainly used in animation. A block that does the opposite has been suggested, but it can simply be done with the following code:
switchcostumetocostume#-1
  • The third block contains the number of the current costume being used. It can be read through other blocks, and specific actions can be taken.
  • The fourth block contains two drop-down boxes. The first allows you to read a sprite’s X Position, Y Position, direction, costume number, size, and volume; while it can also read the Stage‘s background number and volume.

This block can be read from the Stage and all sprites.

Credit: The section above was taken from: https://en.scratch-wiki.info/wiki/Costume#Uses Be sure to follow the link to view additional examples of how this block can be used


Moving a sprite with the keyboard

See the link https://islandclass.org/2021/01/13/making-a-sprite-jump-in-scratch/

Talking Sprites

We can use the “Say” block to make sprites talk. See the tutorial below for more detail:

Tutorial: https://scratch.mit.edu/projects/editor/?tutorial=tell-a-story

Exercises in scratch cards: https://resources.scratch.mit.edu/www/cards/en/story-cards.pdf


Credit: the following section was taken from: https://en.scratch-wiki.info/wiki/Say_()for()Seconds(block). Be sure to follow the link to view additional examples of how this block can be used

Say () for () Seconds (block)

“Say” redirects here. For the other say block, see Say () (block).

Say () for () Seconds
sayforseconds
CategoryLooks
TypeStack
Introduced in1.0

The Scratch Cat saying “Hello!” with the Say block

The say () for () seconds block is a looks block and a stack block. The block displays a speech bubble with the specified text for the sprite that runs it, which appears on the screen for the specified amount of seconds.

The block is similar to the think () for () seconds block, with the difference being that this block displays a speech bubble, while the other displays a thought bubble. It is also similar to the say () block, with the exception that the other block makes the sprite say something indefinitely.

This block was titled “Say () for () Secs” prior to Scratch 3.0.

Credit: the above section was taken from: https://en.scratch-wiki.info/wiki/Say_()for()Seconds(block). Be sure to follow the link to view additional examples of how this block can be used


Sprite movement

This can be accomplished by using the move or glide blocks

Click here for an example of Move and glide blocks

See more detail here : https://en.scratch-wiki.info/wiki/Motion_Blocks

Updates

27th April 2023: Added “Tutorials using scratch cards” at the top of the note.

© 2021 islandclass.org

© 2022 islandclass.org

Retrospective – The video production pipeline.

Steps In Professional Video creation

The following stages are iterative and the project might move back and forth between the stages, however, best practices keeps the back and forth constructive to a  minimum.

  • Planning
    • Video Brief and Rationale
    • Narration Script
    • Storyboard

  • Pre-Production
    • Audio Narration
    • Initial Video Draft
    • Final Video Draft

  • Production
    • Final Video is produced for distribution

Note that steps 1-3 are considered the blueprint – no part of the video has been produced as yet.

© 2021 islandclass.org

Project – Create a Video Using a Storyboard.

Task

You are required to produce a storyboard and a video in 4 events/panels which describes the main goal of sport/game/videogame.

An example storyboard is shown here:

VisualNarration/Text
Title screen with catchy music is shown 2-5 secondsFootball in Two Sentences
Display video of a football with some sort of slow moving graphics.Football is a team sport played by two opposing teams.
Show a live , exciting video of a goal being sored and the jubilation felt from scoring the goal. (The screams of the crowd should be audible over background music) 
Show a timelapse (sped up video) of a field  with players playing the sort from a distance.The object of the game is to get the football into the other team’s goal without using your hands.
Similar title screen graphic as used in intro.Thanks for watching!

An example video is shown here @ https://www.youtube.com/watch?v=zklE6oIsZk8

You are required to :

  • produce and submit the storyboard with 4 events/panels
  • use at least 2 distinct source files that you have created or downloaded from a stock website (e.g https://pixabay.com)
  • use 1 title card for the start of the video, and 1 title card for the end of the video
  • Produce and submit a finished video that is no longer that 60 seconds.

Note for this assignment :

  • You are not limited to 2 sentences.
  • You must have text /narration on at least 1 source file

Marks will be awarded for:

Storyboard

Narration/text consistent to visual – 4 marks

Visual descriptions are sufficient to convey the idea for each panel – 4 marks

Video

Video follows sequencing of events/panels – 1 mark

Evidence that the video matches the narration/text of each panel – 4 marks

2 Distinct source video files used – 2 marks

Total : 15 marks.

© 2021 islandclass.org