Zmiany

Skocz do: nawigacji, wyszukiwania

Module 1 - Getting started in Scratch

Dodane 3535 bajtów, 18:20, 7 lip 2015
We then ask them to find a block ending the programme; this block cannot be connected to any other block from the bottom. We suggest that sometimes it’s impossible to see all the blocks, so we have to use the option of scrolling through the list on which they can be found.
''Students should find the '''stop everything block''' and notice that it can be set to '''stop this script''' or '''stop other sprite scripts'''.''
 
 
[[Plik:C30.png|center]]
 
 
'''Task:''' We ask the students to add the '''stop this script''' block and then run the programme (by clicking on the green flag symbol in the top right corner). Let them repeat clicking it several times. ''The sprite moves on the screen.''
 
[[Plik:4.png|center]]
 
 
[[Plik:C31.png|center]]
 
 
Now we ask the students to find the block allowing them to control the sprite using the keyboard (when the <space> key is pressed).
 
 
[[Plik:C55.png|center]]
 
 
'''We ask the following question:''' Can it be used? What do we need to do in order to use it?
''Together we come to the conclusion that we need to replace the '''when the green flag is clicked''' block with the '''when the <space> key is pressed''' block.''
'''Task:''' We ask the students to replace the blocks.
''We set the '''when the <space> key is pressed''' block. Then we grab the '''move by 20 steps''' block with the mouse to detach it from the '''when the green flag is clicked''' block and attach it under the newly embedded block. We remove the '''when the green flag is clicked''' block (move it back to the area of blocks or “cut” with the scissors tool).''
 
 
[[Plik:C6.png|center]]
 
 
'''Then we ask:''' In the '''when the <space> key is pressed''' block is it possible to replace the space key with another key, e.g. the right arrow?
''Students check that they can select the desired key from the drop-down list in the block.''
'''Task:''' We ask the students to select the '''right arrow''' key, and then to start the programme and teste its operation.
 
 
[[Plik:C7.png|center]]
 
 
'''We ask the following question:''' How does the programme work? Does the sprite move after you start the programme (i.e. click on the green flag)? And what if you press the right arrow key?
''After the programme is started nothing happens, but the sprite moves each time the right arrow key is pressed.
''
'''Task:''' we ask the students to change the number of steps by which the character moves when the key is pressed and then to re-start and test the programme.
'''We ask the following question:''' Does the character move faster or slower? ''Students should obtain different results. This will depend on the number of steps – whether it has been set to a higher or lower value.''
'''We explain''' that the sprite may leave a trail, in other words it can draw. We want the sprite to start drawing when the space key is pressed and to stop drawing when the P key is pressed.
'''
We ask the students''' to check which blocks cause the pen to be applied and which raise it. ''Students should find the following:''
 
 
[[Plik:C8.png|center]]
 
 
'''Task:''' We ask the students to add a new script causing '''the pen to be applied''' when the '''spacebar''' is pressed and another to '''lift it up''' when the '''P key''' is pressed. '''Time to complete:''' ''We give them two to three minutes.''
 
 
[[Plik:C9.png|center]]
 
 
'''Then we ask''' who has already completed the task. We ask a student to come to the interactive whiteboard to show other students how he/she did it. Together we d whether the task was completed well.
 
[[Plik:C10.png|center]]
 
 
[[Plik:C12.png|center]]
 
 
'''Task:''' We ask the students to add a script that uses the '''rotate by 15 degrees''' block so that the sprite rotates when the '''down arrow''' key is pressed. After completing this task, students should test the last few tasks, i.e. move the character, apply the pen, draw something, lift the pen up.
 
 
 
[[Plik:C13.png|center]]
181
edycji