Book Image

Scratch 2.0 Game Development Hotshot

Book Image

Scratch 2.0 Game Development Hotshot

Overview of this book

Table of Contents (18 chapters)
Scratch 2.0 Game Development HOTSHOT
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Animating


Animation loops are the scripts to simulate movement more lively by switching costumes. We will create different costumes based on the robot costume we just created.

Prepare for lift off

Make two copies of the robot costumes. Name one as left arm up and the other walk right.

Engage thrusters

Let's first create a costume called left arm up. Duplicate the robot costume and name the copy as right arm up. Then, perform the following steps to update the left arm up costume:

  1. Press and hold the Shift key. With the Select tool, click on the robot's left arm.

  2. While the Shift key is still pressed, click on the left hand.

  3. Now both the left arm and the left hand are selected.

  4. Use the rotation handle to rotate the arm and hand as shown in the following screenshot:

Using the same technique (duplicate costume, then move or rotate body parts), you can easily create costumes that can be used in animation loops. The complete project includes three costumes, namely robot, left arm up 1, left arm up 2 ,as...