In this session, you will be making the boy walk across the surface of Mars.
- You will make the boy 'Glide' from point to point (tweening).
- You will make the boy 'Hide' and 'Show' when he walks behind the big rock.
- You will make him 'Glide' from the rock to the edge of the screen and 'Hide' again.
Children who finish or are confident on this task:
You will edit a new file where we make the Martian appear after a short time 'hiding'How to build our animation. There is an extension below too.
A closer look at the final script with a #comment (the # is used in coding to tell the people using your script that this is not part of the code).
Extension
Why might I have added these block in here. Which blocks are they? And, what do they do?
Mini Project: Create movement by yourself with grow, shrink and disappearing behind an object.
Click this image to take you to the project to practice making a 'Sprite' move up and down.
This is what you will see in the this file when you open it (You can click on either image to open the Scratch file). Remember to hit REMIX to see the file and make it your own.
Keyword | Definition |
---|---|
Sprite | An object in Scratch which performs functions controlled by scripts |
Stage | The background of a project, performs functions through scripting |
Block | Blocks make up scripts, which make a project work |
Script | A script is a collection or stack of blocks that all interlock with one another. The blocks and their order are very important, as they determine how sprites interact with each other and the backdrop. |
Green Flag | Sometimes simply called the 'flag,' this is what starts most projects' scripts running |
Tweening | Moving between two points - given in coordinates X , Y |
Comments | Sometimes, comments are attached to scripts to explain what certain blocks do and what the script's purpose is. |
X Position | The position that a sprite or the mouse is at along the horizontal axis |
Y Position | The position that a sprite or the mouse is at along the vertical axis |
Learning Intentions:
Can I code?
Can I create realism?
Teachers: Scratch project Link.
Success Criteria:
I can use code blocks in a precise order.
I can make my sprites move, hide, shrink and play sound.
I can test and re-test my code to create precise movement.