08.11.2012 Views

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

When you make a game you normally start by collecting a set of nice sprites for the objects in<br />

your game. Many collections of interesting sprites can be found on the <strong>Game</strong> <strong>Maker</strong> website.<br />

Other sprites can be found on the web, normally in the form of animated gif files.<br />

To create a sprite, choose the item Create Sprite from the Resources menu, or use the<br />

corresponding button on the toolbar. The following form will pop up.<br />

At the top you can indicate the name of the sprite. All sprites (and all other resources) have a<br />

name. it's best to give each sprite a descriptive name. Make sure all resources get different<br />

names. Even though this is not strictly required, you are strongly advised to use only letters<br />

and digits and the underscore symbol (_) in a name of a sprite (and any other resource) and<br />

to let it start <strong>with</strong> a letter. In particular don't use the space character. This will become<br />

important once you start using code.<br />

To load a sprite, click on the button Load Sprite. A standard file dialog opens in which you<br />

can choose the sprite. <strong>Game</strong> <strong>Maker</strong> can load many different graphics files. When you load an<br />

animated gif, the different subimages form the sprite images. Once the sprite is loaded the<br />

first subimage is shown on the right. When there are multiple sub- images, you can cycle<br />

through them using the arrow buttons.<br />

The checkbox labeled Transparent indicates whether the rectangular background of the<br />

sprite image should be considered as being transparent. Most sprites are transparent. The<br />

background is determined by the color of the leftmost bottommost pixel of the image. So<br />

make sure that no pixel of the actual image has this color. (Note that gif files often define their<br />

own transparency color. This color is not used in <strong>Game</strong> <strong>Maker</strong>.)<br />

With the button Edit Sprite you can edit the sprite, or even create a completely new sprite.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!