Tile set

Tile sets
In the Backgrounds form of GameMaker there's the ability to use the background as a tileset. On a tileset walls, floors, paths, trees, water and more can be drawn, placing invisible wall objects over the wall tiles or tree tiles. Also letters or other things can be drawn on a tileset. In Game Maker tiles are not animated.



Loading a tileset
In the backgrounds menu the user can select create background, then load background, find the Tilesets folder and load one of them. The user can then select use as tileset, make the tile width and height 32 and then should click on ok.

Now the user can create a room, open the room and go to tiles and decorate the room. The user can turn delete underlying off to have more tiles on the same spot, The user can also click on the +Add to add more tile layers.

Creating a tileset.
First the user needs to know what size he or she want the tiles. Then he or she creates a background of the size. The user edits the background, goes to transform and stretch. Because it's not so easy to change the size later the user needs to make it something where he or she has enough room for the tiles. For 64 pixels would become 640. Then he or she clicks ok. The user copies the tile and pastes the tile under the first having a 1 pixel line remaining between them until he or she reaches the end of the background.The user does the same thing going to the right from the first tile. The user draws lines with another colour then the sprite between the tiles making alot of squares.

When that's done the user can use it as tileset and make the tile height and width the same as the tile THe user should put in horizontal and vertical sep 1 the same as the line width between the tiles.

Pasting a tileset
The user might find a picture on the internet of a tileset that can be copied and pasted, if the user finds one that he or she wants to use,he or she can right click and copy it. In GameMaker, first the user can create a sprite and paste the tileset there, get the size and make his or her background the same size.then he or she could paste it in the background and click on use as tileset, He or she sets the amount of pixels, if there's lines between the tiles,he or she puts on the horizontal and vertical sep 1 if the width of the line is just 1 pixel. Then he or she cuts the image out of the sprite.

See also: GML_Functions:_Tiles