Page 108 - KEC Khaitan C4 Flipbook
P. 108
USING COSTUME CHANGES FOR SPRITE ANIMATIONS
Costumes change a sprite’s appearance to create movement or expressions. This makes
animations more dynamic and storytelling more interactive. By switching costumes,
sprites can walk, jump, or show emotions.
Let us create a script where sprite changes costumes for animation. To do so follow the
given steps:
Step 1 Add the sprite and backdrop to
the stage to create the following
scene.
Step 2 Click on the Ball sprite to activate
it.
Step 3 Drag block to
the script area.
Step 4 Drag
block to the script area and snap it
to the script.
Step 5 Drag block and snap it to the script.
Step 6 Drag block and snap it in the hexagon of the if loop.
106 Premium Edition-IV

