O'Reilly logo

Scratch by Example: Programming for All Ages by Eduardo A. Vlieg

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

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

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