Page 260 - Scratch Programming Playground
P. 260

Now the setup is done.
                             as the player moves the Cat sprite left or right, we want
                         the frame variable to increase. the frames per costume vari-
                         able keeps track of how fast or slow the animation runs.
                             Let’s edit the code in the define walk custom block to
                         increase the frame variable by an amount calculated from
                         frames per costume.


































      234   Chapter 9
   255   256   257   258   259   260   261   262   263   264   265