Learn how to start coding to make your own coding projects.
Scratch is a coding website that we can use to create our own games, animations and projects.
Watch this short minute video to get a quick introduction to it.
Now let's take a look at the Scratch website!
Open the Scratch website by clicking on the link below. Once it opens up click on the Create link at the top of the page. This will open up the project editor. Once you've done that come back to this tab and move onto the next step.
Go to the Scratch website using the link below and click on the 'Create' link in the blue bar at the top.
By default, each new project starts with the cat sprite already added. To delete the cat click on the x in the blue circle beside the cat in the sprite list.
Scratch comes with a sprite library that's packed full of different characters.
Open up the sprite library and choose a sprite that you'd like to add to your project.
You'll see that it gets added into the stage area and we can now give it some code!
To add a sprite from the sprite library follow these steps:
- Put your mouse over the Choose a Sprite button
- Click on the magnifying glass
- Find the sprite you want in the library
- Click on your chosen sprite
You can use search box or the filter links (Animals, People, Fantasy etc) to locate your sprite.
Now let's try making the sprite move. Add the following code blocks to the code area by dragging and dropping them. The colour of the blocks let's you know which "block category" to open.
Hint: the Events and Motion categories.
You'll notice that they click in and join together when you drop them close to each other. Don't worry if it takes a few attempts to drag and drop them in. You'll get used to adding the code blocks in no time at all.
when green flag clicked
move (10) steps
turn cw (15) degrees
Once you've added these blocks click the green flag at the top left of the stage area to 'run' the code. Each time you click the green flag it will run the code and your sprite will move a small bit and turn.
You may have noticed the numbers inside the blocks you added. To blocks use these numbers to decide how much to move or to turn.
Change the numbers like below and then try clicking the green flag again. You will notice that the sprite moves and turns even more now.
when green flag clicked
move (50) steps // change this to 50
turn cw (25) degrees // change this to 25
This lesson is copyright of Coding Ireland. Unauthorised use, copying or distribution is not allowed.
Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at https://scratch.mit.edu