1 / 5

Handle the event of „catch” ( 1 / 5 )

Handle the event of „catch” ( 1 / 5 ). We are going to program the cat to catch the mouse Select the cat sprite first to program Add „if” with condition „touching” Select touching object from the list. Handle the event of „catch” ( 2 / 5 ).

Download Presentation

Handle the event of „catch” ( 1 / 5 )

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. Handle the event of „catch”(1/5) • We are going to program the cat to catch the mouse • Select the cat sprite first to program • Add „if” with condition „touching” • Select touching object from the list

  2. 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

  3. Handle the event of „catch”(3/5) • Embed „if” into a „forever” function • Press on the green flag

  4. Handle the event of „catch”(4/5) • We now program the mouse • Select the mouse sprite to get its script • Add „when I receive …” function and select „catchYou” message

  5. Handle the event of „catch”(5/5) • When the mouse gets the event message then this program block runs • 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

More Related