WorksheetsCoding Patterns
Total questions: 8
Worksheet time: 4mins
What is a Coding Pattern?
A set of code blocks that you can use in different games
A pattern for clothes, like stripes
It's when you code something really difficult in a game
What coding pattern is this?
Sticky Loop.
It makes this character sticks to something else.
Sticky Loop.
It makes the computer sticky like glue.
Forever Loop.
It never stops.
Forever Go To.
It keeps going somewhere.
This coding pattern is called Straight Bounce.
How does the character move when using this coding pattern?
Turn around (bounce) at screen edge
Moves in a circle
Moves and stop at screen edge
You can use the same coding pattern in different ways.
Choose all Straight Bounce coding patterns.
Most coding patterns are Actions, but this one is special.
It's an Event and it's called Touching Check.
How do you use it?
Use it to do something when this character touches something else
Use it to touch or hit another character
Use it do something over and over again, forever
Use it however you want
You can use coding patterns together.
Here we are using Touching Check and Sticky Loop together.
What does the code do?
This character will eat apples
When this character touches the apple, it will stick to the apple
Nothing, this code is wrong
The apple will bounce around the screen
We are using Touching Check and Straight Bounce together.
What does this code do?
When you touch this character with your mouse, it will move and bounce around the screen
When the game starts, the character will move and bounce around the screen
When you touch this character with your mouse, it will stick to your mouse pointer
Nothing, the code is wrong
What can you do to find out how to code a coding pattern?
Go to the 'Coding Patterns' page and watch the coding pattern video
Just get a bunch of blocks and try them out
Do nothing
