|
||
TilesAs you should know you can add tiles to rooms. A tile is a part of a background resource. Tiles are just visible images. They do not react to events and they do not generate collisions. As a result, tiles are handled a lot faster than objects. Anything that does not need events or collisions can best be done through tiles. Also, often one better uses a tile for the nice graphics while a simple object is used to generate the collision events.You actually have more control over tiles than you might think. You can add them when designing the room but you can also add them during the running of the game. You can change their position, and even scale them or make them partially transparent. A tile has the following properties:
The following functions exist that deal with tiles:
tile_add(background, left, top, width, height, x, y, depth) Adds a new tile to the room with the indicated values (see above for their meaning). The function returns the id of the tile that can be used later on. The following functions deal with layers of tiles, that is, collections of tiles at the same depth.
tile_layer_hide(depth) Hides all tiles at the indicated depth layer.
« Drawing Surfaces | The display » |
||
|
||
|
You can also read this manual on one single long page (± 1.5 mb)
Also available in: ![]() Download helpfile
|
||





