A Virtual LOLcat in Scratch

Table of Contents

Fork me on GitHub

Grey overlay

Pink

Green

Blue

Cream

Liliac

Purple

Yellow

1 An introduction to Scratch

GUI.png Scratch is a programming language that can be used to make small programs and games. Above is the Graphical User Interface (GUI) for Scratch. A GUI is how the a user interacts with software.

Learn It

  • The Scratch GUI is split into 4 sections
  • These are listed below

KEY.png

  • The key areas are:
    1. The Blocks Palette
    2. The Scripts Area
    3. The Stage
    4. The Sprite List

Code It

If you've used Scratch before and already have an account, then you can skip this section.

join.png

  • Fill in the details required. Be sure to pick a username and password you will remember.
  • You might need to use your teacher's email address when you register.
  • Once you are logged in, click on the Create button in the menu bar.

create.png

  • Now we can name our file. Call it Practice Scripts

title.png

  • Scratch works by dragging blocks of code from the blocks palate into the script area. These blocks then can be stacked to create scripts.
  • Let's make a simple Script. From the Blocks Palate, choose Events

Scripts_menu.png

  • Now, click and drag the following block on to the Scripts Area.

Green_flag.png

  • Next choose the Looks scripts from the menu.
  • Click and drag the say Hello! for 2 secs block and snap it to the When flag clicked block.

Hello.png

Run It

  • To run our Scratch script, you just need to click on the Green Flag in the Stage area.

Hello2.png

Code It

  • Now let's try something a little more complicated.
  • Delete your current script by picking it up and dragging it back to the Blocks Pallette.
  • We're going to make the cat grow. You'll need to search through the Blocks Pallette to find the appropriate blocks, and build the script as it's shown below.

GROWIN.png

Run It

  • Click on the Green Flag in the Stage area.

Badge It

  • You'll upload your completed work to www.BourneToLearncom for marking. The video tutorial below explains how to do it:
  • Silver:
    • After you have completed the code in Scratch as shown above, try changing what the cat says and how long it says it for.
    • Follow the video tutorial on how to upload your work and upload your work to www.bournetolearn.com.

      Happeh.png

  • Gold: Try to change the script so that after the cat has grown, it says "IM SHRINKIN" and then returns to it's regular size.
    • HINT: You can use negative numbers in Scratch
  • Platinum:
    • To get your platinum badge you need to make the cat move around in a large circle.
    • You'll probably want to look into using a loop to achieve this.