© Eduardo A. Vlieg 2016
Eduardo A. VliegScratch by Example10.1007/978-1-4842-1946-1_12

12. Create Your Own Blocks

Eduardo A. Vlieg
(1)
Curacao, Curaçao
 
Congratulations. You have reached the last chapter of this book. You’ve created a lot of scripts, and we’ve discussed several ways to make them more efficient. In this chapter, you’ll learn another: creating custom blocks. The best way to illustrate the power of custom blocks is with an example.
Suppose you want a sprite to jump up and down. That’s easy, right? You snap together a sequence of blocks, as shown in Figure 12-1. Now suppose you want several sprites to jump in your project or you frequently write scripts with jumping sprites. Every time, you’d need to go back and forth between categories ...

Get Scratch by Example: Programming for All Ages now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.