User Guide

107
5.3 The Player Sprite
For the main sprite, you need 10 costumes:
• Four “walking” sprites.
• One costume for when the character throws a punch.
• Two costumes for when the character kicks.
• One costume for when the character is hit.
• Two costumes for when the player is knocked over.
Figure 3. Ten costumes for the main sprite. Original artwork ©1989 Technos Japan Corp.
You can use Scratch’s Paint Editor to create your costumes.
However, it is often easier to use an external editor. On The
Spriters Resource, you can download images of the main sprite
from the NES game. However, many of the enemies are not
available. Instead, use the sprites from Double Dragon 2.
When preparing the costumes, keep them on a solid-color
background and make each graphic file the same size. Save each
costume to a new file in portable network graphic (PNG) format.
Create a new sprite in Scratch by importing the first costume.
Name this sprite Billy, and then import the other costumes. This
tutorial assumes that the costumes are named Billy-1, Billy-2,
Billy-3, and so on. You may need to rename the first costume.
When you have imported all of the costumes, you can remove
the solid-color background using the Fill tool in the Paint Editor,
without Scratch moving the sprites.