I will explain how to use the scratch program to program your own games and other useful things.
First of all, if you haven’t read my instructions on how to actually get scratch, i recommend you do it now. I put them up on the Triond website.
Now lets get started!
scratch is very simple. All you need to do is snap together little blocks and after a bit of work and some thinking you will end up with a game. To start the game you just need to click on the green flag.
I will go through each control block and explain what they do.
When green flag pressed – the green flag block is the block that starts most programs you make on scratch. when a block is connected to it, it means: when green flag pressed, do this.
When (key) pressed – this means when the entered keyboard key is pressed, something will happen, depending on what locks you connect to the when (key) pressed block.
When (sprite) clicked – a sprite is an object in a program. e.g. a car, dog, person, character. this block means when the sprite that has this block is clicked, depending on what locks you connect to the when (sprite) clicked block.
Wait (number) seconds – this means when this block is in a chain of blocks, it will wait a number of seconds before moving onto the next block in the chain.
Forever – this block just repeats whatever is inside it until the program is stopped. So if you put a “move 10 steps” block into it the sprite will move 10 steps forever.
Repeat (number) – this block is like the forever block, but instead of repeating forever it repeats a certain number of times.
Broadcast/broadcast and wait – this sends a message to all the other sprites in the program and the background.
When i receive - this means when the sprite gets a broadcast from another sprite, it will do whatever the blocks connected to it are.
Forever if [ ] – this is just like the forever block, but instead of repeating forever, no matter what, it only repeats whenever the block in the brackets is true (it will keep checking if it is true forever) . e.g. forever if [space button pressed]- change x by 5. This will mean that whenever space is pressed (or held down) the sprite will move 5 spaces to the right.
If [ ] – this is like the forever block but instead of repeating what is inside it forever, it just checks if whatever is in the brackets is true, and if it is, it will do whatever is inside it, and if it is not, it will just do nothing.
If [ ] else – almost exactly like the if block but this time when whatever is in the brackets is not true, it will do whatever is in the else part of the block.
Wait until [ ] – this block is like the wait (number) seconds block but the difference is that it waits until the thing in the brackets is true, no matter how long it takes.
Repeat until [ ] – this is like the repeat block but it repeats until the thing in the brackets is true, instead of a number of times.
Stop script – this stops the script that it is in.
Stop all – stops the whole program and all of its scripts.












One Response
I use scratch, and I’m quite experienced so I know all these, but great guide for a beginner or near beginner!