Page 256 - Scratch Programming Playground
P. 256

these costume switches will be handled with the dark
                         purple custom blocks that have the option run without screen
                         refresh checked, so the hitbox costume will never be drawn on
                         the screen.

                         10. Add the Hitbox Code

                         We’ll add switch costume to blocks to the start and end of
                         both dark purple custom blocks. Modify the Cat sprite’s code to
                         look like this:
























































      230   Chapter 9
   251   252   253   254   255   256   257   258   259   260   261