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