O'Reilly logo

Learn to Program with Scratch by Majed Marji

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Procedures

This chapter explains how you can take a “divide and conquer” approach to programming. Rather than build your programs as one big piece, you’ll be able to write separate procedures that you then put together. Using procedures will make your programs both easier to write and easier to test and debug. In this chapter, you’ll learn how to:

  • Use message broadcasting to coordinate the behavior of many sprites

  • Use message broadcasting to implement procedures

  • Use the “build your own block” feature of Scratch 2

  • Use structured programming techniques

Most of the applications we’ve developed so far contain only one sprite, but most applications require multiple sprites that work together. An animated story, for example, might have several ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required