9. Conditional and Repetitive Logic

To create a script, you must know how to work with control code blocks. All of Scratch’s hat blocks are control blocks. Control blocks also provide the capability to implement loops and conditional programming logic, which are the building blocks of advanced and complex applications. Control blocks can pause and halt script execution. Control blocks also provide the capability to send and receive broadcast messages, providing you with a means of coordinating application activity.

The major topics covered in this chapter include:

  • How to use control blocks to initiate script execution

  • How to pause and halt script execution

  • How to set up different types of loops and implement conditional programming logic

  • How to send and receive broadcast messages between sprites

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.78.30