Page 257 - Scratch Programming Playground
P. 257
these blocks from the purple Looks category will change
the costume to the hitbox. Because the hitbox is a simple rect-
angle that doesn’t have protruding parts that could “catch” on
platforms, like the cat’s head and whiskers could, the game
will behave in a more natural way.
Save Point
Click the green flag to test the code so far. Make the cat jump
around, and make sure the cat can’t hang off the platform by
its cheek or tail. then click the red stop sign and save your
program.
If you’re lost, open platformer6.sb in the resources ZIp file
and continue reading from this point.
F add a Better
Walking animation
the Cat sprite that a Scratch project starts with has two cos-
tumes named costume1 and costume2.
costume1 costume2
MakING aN advaNCed pLatforMer 231

