Editing your sprites

Up to now we loaded our sprites from files. It is though also possible to create and in particular modify them within GameMaker. To do this, open the sprite property window by double clicking on one of your sprites (or by creating a new one). Now press the button labeled Edit Sprite. A new form will appear showing all the subimages that make up the sprite.

The sprite editor form will look as follows:

At the right you see the different images that make up the sprite. Note that in GameMaker all subimages of a sprite must have the same size. At the left an animation of the sprite plays. (If you don't see the animation, check the box labeled Show Preview.) Below the preview you can change the speed of the animation and the background color. Also you can select one of the backgrounds in your game and whether it must be streched. In this way you can get an idea of what the animation will look like in the game. (Note that this speed is only for preview. The speed of the animation during the game depends on the room speed.)

The sprite editor contains many commands to create and change the sprite. These are all given through the menus. (For some there are buttons on the toolbar.) Some commands work on individual images. They require that you first select a subimage with the mouse.

File menu

The file menu contains a number of commands related to loading and saving sprites.

Edit menu

The edit menu contains the following commands:

Transform menu

In the transform menu you can perform a number of transformations on the images. For most of them you can choose whether to apply them only to the current sub image or to all images.

Images menu

In the images menu you can perform a number of operation on the images. Some of these are only available in the Standard Edition.

You will have to experiment with these commands to get the sprites you want.

Animation menu

Under the animation menu you can create new animated sprites out of the current sprite. There are many options and you should experiment a bit with them to create the effects you want. Also don't forget that you can always save an animated sprite and later add it to the current one. Also you can always add some empty images and delete unwanted ones. We will briefly go through the different possibilities.

In particular the last two commands are very powerful. For example, to blow up an object, add a number of copies and then a number of empty frames. Then overlay it with an explosion animation. (Make sure the numbers of images match.) Alternatively, morph it to the explosion. With some practice you can make great sprites.