Topicmf2103eb6fd7b5b4a_1528449000663_0Topic

Sprite walk at the lakelakelake

Levelmf2103eb6fd7b5b4a_1528449084556_0Level

Second

Core curriculummf2103eb6fd7b5b4a_1528449076687_0Core curriculum

Grades IV‑VI

I. Understanding, analyzing and solving problems. The student:

2) formulates and writes in the form of algorithms commands consisting of:

c) controlling the robot or object on the screen;

3) distinguishes basic steps in algorithmic problem solving: determination of the problem and goal to be achieved, analysis of the problem situation, developing a solution, checking the problem solution for example data, writing the solution in the form of a diagram or program.

II. Programming and solving problems with the use of computer and other digital devices. The student:

1) designs, creates and writes in a visual programming language:

a) ideas of stories and solutions to problems, including simple algorithms using sequential, conditional and iterative commands and events,  
b) a simple program that controls a robot or other object on the computer screen;

Timingmf2103eb6fd7b5b4a_1528449068082_0Timing

45 minutes

General objectivemf2103eb6fd7b5b4a_1528449523725_0General objective

Creates a scriptscriptscript describing invented storystorystory.

Specific objectivesmf2103eb6fd7b5b4a_1528449552113_0Specific objectives

1. Creates simple object animations.

2. Can change the background.

3. Can change objects.

Learning outcomesmf2103eb6fd7b5b4a_1528450430307_0Learning outcomes

The student:

- builds scripts for stories he invented,

- changes the background and objects.

Methodsmf2103eb6fd7b5b4a_1528449534267_0Methods

1. Discussion.

2. Work with computer.

Forms of workmf2103eb6fd7b5b4a_1528449514617_0Forms of work

1. Individual work.

2. Group work.

Lesson stages

Introductionmf2103eb6fd7b5b4a_1528450127855_0Introduction

If you already know how to program the basic movements of the sprite, you can create your first animated story.

Your task is to build a scriptscriptscript, in which your sprite will walk back and forth on the pierpierpier located on the lake.

Proceduremf2103eb6fd7b5b4a_1528446435040_0Procedure

So far, the sprite was wandering on an empty stage. However, if we want to create a storystorystory, we need a backdropbackdropbackdrop for it.

Task 1

Replace white backdrop of the stage with an image of the boardwalk. If you do not know how to do it, read the following instructions and watch the slideshow.

Instruction:

Step 1.
Find the icon for choosing a new backdrop from the gallery in the lower left corner of the screenscreenscreen in the area of stage management. Click on it.

Step 2.
You have the Backdrop LibrarylibraryLibrary window in front of you. Select the backdrop with the pierpierpier on the lakelakelake named boardwalk and confirm your selection with the OK buttonbuttonbutton.

Step 3.
Next to the stage window select a blank backdropbackdropbackdrop No. 1 and delete it by clicking on the cross.

Step 4.
Click on the sprite in the area of the sprite management, and then on the scripts tab to return to the familiar look of your screenscreenscreen.

[Slideshow 1]

We want the sprite to walk along the pier. Not only one way, but back and forth. Because dragging the sprite every time it disappears behind the edge of the stage spoils the whole effect of the story you create.

Task 2

Prepare a basic script, in which the sprite will take 10 steps.

Enter the following modifications in the script:

- After reaching the edge of the stage, the sprite turns around and continues to walk the other way.
- After bouncing off the wall he does not walk upside down.

If you have problems finding the right blocks, see the instructions.

Instruction:

In order for the sprite to turn around and continue walking the other way after reaching the edge of the stage, one should choose from the Motion categorycategorycategory the block if on edge, bounce.

So that the sprite after bouncing from the wall does not walk upside down, it is necessary to choose from the Motion category the block set rotation style ... and the left‑right option from drop‑down menu.

[Illustration 1]

Until now, the sprite walked only when we pressed the key. We can automate his movement: partially or completely.

In the Control category there are blocks repeat ... and forever.

The first one is used to execute commands contained in it as many times as we enter in its field. The second performs commands indefinitely. Therefore, you cannot attach another block to it (no teeth).

[Illustration 2]

Task 3

Test in your scriptscriptscript, how the blocks repeat ... and forever work.

The animation you create will be more convincing if the movement of the sprite is accompanied by the movement of his body. This effect will arise if we use the costume blocks in the Look categorycategorycategory. What kind of costumes your sprite has, you can check by clicking on the Costumes tab.

The sprite body will move when walking, if it has at least two costumes.

[Illustration 3]

The computer can perform many commands at the same time, so you can write different tasks in the form of separate scripts. You already have a script that causes the sprite to move on stage. You can add a second script, which will cause that the sprite will be animated due to the change of costumes. Both scripts will run simultaneously if they are started with the same key or green flag. You can also add additional scripts.mf2103eb6fd7b5b4a_1527752256679_0The computer can perform many commands at the same time, so you can write different tasks in the form of separate scripts. You already have a script that causes the sprite to move on stage. You can add a second script, which will cause that the sprite will be animated due to the change of costumes. Both scripts will run simultaneously if they are started with the same key or green flag. You can also add additional scripts.

Task 4

Modify your scriptscriptscript or add additional scripts that will do the following tasks:

- the movement of the sprite will last for a short time after pressing the selected key,
- the sprite will change the costume while walking,
- the sprite will greet you before walking.
- the sprite will end the walk, saying he is tired.

Example solution:

[Illustration 3]

You can change the backdropbackdropbackdrop; it is worth to test other characters than the cat‑sprite. Some sprites have more costumes.

Watch the slideshow to learn how to choose a new sprite.

[Slideshow 2]

Lesson summarymf2103eb6fd7b5b4a_1528450119332_0Lesson summary

The sprite can move, bounce off the wall. To get the effect of body movement, you should insert a sprite animation into the script. We use the sprite costumes for that.mf2103eb6fd7b5b4a_1527752263647_0The sprite can move, bounce off the wall. To get the effect of body movement, you should insert a sprite animation into the script. We use the sprite costumes for that.

Selected words and expressions used in the lesson plan

backdropbackdropbackdrop

buttonbuttonbutton

categorycategorycategory

lakelakelake

librarylibrarylibrary

modificationmodificationmodification

pierpierpier

screenscreenscreen

scriptscriptscript

storystorystory

mf2103eb6fd7b5b4a_1527752263647_0
mf2103eb6fd7b5b4a_1527752256679_0
mf2103eb6fd7b5b4a_1528449000663_0
mf2103eb6fd7b5b4a_1528449084556_0
mf2103eb6fd7b5b4a_1528449076687_0
mf2103eb6fd7b5b4a_1528449068082_0
mf2103eb6fd7b5b4a_1528449523725_0
mf2103eb6fd7b5b4a_1528449552113_0
mf2103eb6fd7b5b4a_1528450430307_0
mf2103eb6fd7b5b4a_1528449534267_0
mf2103eb6fd7b5b4a_1528449514617_0
mf2103eb6fd7b5b4a_1528450135461_0
mf2103eb6fd7b5b4a_1528450127855_0
mf2103eb6fd7b5b4a_1528446435040_0
mf2103eb6fd7b5b4a_1528450119332_0
lake1
lake

jezioro

R17CoQRN0P4bN1
wymowa w języku angielskim: lake
script1
script

skrypt

RMyWVl1qQpEdg1
wymowa w języku angielskim: script
story1
story

historia

R1EfOBOSUzu9X1
wymowa w języku angielskim: story
pier1
pier

pomost

R4qiYHADL7FlL1
wymowa w języku angielskim: pier
backdrop1
backdrop

tło

R1FTvW0VVUVR51
wymowa w języku angielskim: backdrop
screen1
screen

ekran

RJr38oWq4rQ2n1
wymowa w języku angielskim: screen
library1
library

biblioteka

RSFr105IahvM21
wymowa w języku angielskim: library
button1
button

przycisk

R1aUHRKC2Av1s1
wymowa w języku angielskim: button
category1
category

kategoria

R15CvxIpBH5V81
wymowa w języku angielskim: category
modification1
modification

zmiana

R1JLXWSyXCviu1
wymowa w języku angielskim: modification