Home | Customize | Blog | Extras | Log In | Info
Manual | D&D icons | GML Parser | Archive | Iso City
Username: Password:  
About | Features | Directory | Banners | Contact

Designing Games with GameMaker
Designing Games with GameMaker

Strips

As indicated above, sprites are normally either stored as animated gif files or as strips in PNG files, in which all subimages are placed next to each other. In the second case the file name should end with _stripXX where XX indicates the number of subimages.

However, sometimes sprites are part of a larger bitmap in which the sub images can be stored next to each other or below each other and maybe there are separating lines between them. Such a strip cannot be read automatically as GameMaker will not know the size and position of the subimage. For example, the following piece of a strip file contains four different animations.

If you want to pick a certain animation out of such a file you must indicate where the images are. To this end you can choose Create from Strip or Add from Strip from the File menu in the sprite editor. After indicating the appropriate strip image file, the following form will show:

At the right you see (part of) the strip image you selected. At the left you can specify a number of parameters that specify which subimages you are interested in. Note that one or more rectangles in the image indicate the images you are selecting. The following parameters can be specified:

  • Number of images. This is the number of sub images you want to take from the strip.
  • Images per row. How many images of the ones you want are there per row. For example, by setting this to 1 you will select a vertical sequence of images.
  • Image width. Width of the individual images.
  • Image height. Height of the individual images.
  • Horizontal cell offset. If you don't want to select the top-left images, you can set here how many images should be skipped horizontally.
  • Vertical cell offset. Here you indicate how many images to skip vertically.
  • Horizontal pixel offset. Sometimes there is some additional space at the left top. Here you indicate this amount (in pixels). You can also use the mouse to indicate the place where the first image should start
  • Vertical pixel offset. Vertical amount of extra space.
  • Horizontal separation. In some strips there are lines or empty space between the images. Here you can indicate the horizontal amount to skip between the images (in pixels).
  • Vertical separation. Vertical amount to skip between the images.

Once you selected the correct set of images, press OK to create your sprite. Please remember that you are only allowed to use images created by others when you have their permission or when they are freeware.

Search Search


Alternative versions Alternative versions

You can also read this manual on one single long page (± 1.5 mb)

Also available in: Dutch French German

ZIP Download helpfile

Advertisement Advertisement

GameMaker Manual