1 / 26

Introducing Scratch

Introducing Scratch. Learning resources for the implementation of the scenario. Purpose and contents. Present the stages of the learning scenario entitled “ Introducing Scratch ”

lunea-mayo
Télécharger la présentation

Introducing Scratch

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introducing Scratch Learning resources for the implementation of the scenario

  2. Purpose and contents Present the stages of the learning scenario entitled “Introducing Scratch” Provide additional resources designed to support the teacher and student in learning how to develop and use this scenario

  3. The stages of the scenario Make a sprite move according to the arrow keys pressed Show function of „when … key pressed” Make an other sprite move randomly Show importing premade sprite to the project Show function of „glide …” Handle the event of „catch” Show functions „forever”, „if”, „broadcast”, „play”, „say” Show nesting of functions Changing background picture

  4. Stage 1. Make a sprite move according to the arrow keys pressed

  5. Make a sprite move (1/2) Open Scratch and select the cat sprite Start with this code Select certain key Press on the green flag and see what happens if you use the selected button

  6. Make a sprite move (2/2) Add keys to other directions(down, left, right) Rewrite related parameters(use the „change …” function) Press on the green flag and see what happens if you press certain buttons

  7. Screencast for Stage 1.

  8. Stage 2. Make an other sprite move randomly

  9. Make an other sprite move randomly(1/3) Choose new sprite from file Select the mouse sprite

  10. Make an other sprite move randomly(2/3) Start with this code Use „show” function to present sprite of the mouse Use „glide …” with parameters chosen randomly

  11. Make an other sprite move randomly(3/3) Use „pick random …” function to get random number from a range You have to evaluate two random numbers to x and y directions Press on the green flag and see what happens

  12. Screencast for Stage 2.

  13. Stage 3. Handle the event of „catch”

  14. Handle the event of „catch”(1/5) Select the cat sprite to get its script Add „if” with condition „touching” Select touching object from the list

  15. Handle the event of „catch”(2/5) Add „broadcast …” to send an event message to all other objects Add „play sound …” to hear sound Add „say …” to get written message on the screen

  16. Handle the event of „catch”(3/5) Embed „if” into a „forever” function Press on the green flag and see what happens

  17. Handle the event of „catch”(4/5) But who will get the event message? Select the mouse sprite to get its script Add „when I receive …” function and select „catchYou” message

  18. Handle the event of „catch”(5/5) Use „hide” to clear mouse sprite from the screen and „wait” for waiting for the new stage background Use „go to …” function to the new starting position of mouse spirit Use „show” function to get mouse sprite Press on the green flag and see what happens • When the mouse gets the event message, then …

  19. Screencast for Stage 3.

  20. Stage 4. Changing background picture

  21. Changing background picture (1/5) You need to change the background picture when the cat catches the mouse Select „Stage” to get its script

  22. Changing background picture (2/5) Select „Backgrounds” tab You can add new backgrounds by clicking on „Paint”, „Import” or „Camera” buttons

  23. Changing background picture (3/5) Click on „Import” button Select suitable background picture from the list

  24. Changing background picture (4/5) Click on „Scripts” tab to get its script Start with this code • Add „catchYou” parameter to „when I receive …” function • Add „wait …” function • Add „next background” to change picture

  25. Changing background picture (5/5) When the cat sprite catches the mouse, this generates „catchYou” event message This message can be captured by the mouse sprite and the background called „Stage” You can see four different pictures as the event message has been captured by the „Stage”

  26. Screencast for Stage 4.

More Related