This tile data is then flipped before being used to set the tile on the tile map again.
The above code gets the ID for the tile map "Clouds" on the layer "Tiles_Sky" and then uses that to get the data from the tile at position (64, 128). Tilemap_set_at_pixel(map_id, data, 64, 128) Var data = tilemap_get_at_pixel(map_id, 64, 128) Var map_id = layer_tilemap_get_id(lay_id)
The position along the y-axis to get the tile data from (in room pixels) The position along the x-axis to get the tile data from (in room pixels) The unique ID value of the tile map element to get the tile-data of Tilemap_get_at_pixel(tilemap_element_id, x, y) Argument So you can create "collision maps" of tiles using one tile at index 1 in the tile set - for example - then use this function to check for 1 or 0 (an empty tile) to calculate collisions. IMPORTANT! If the tiles in the tile map have been unchanged (ie: they are not rotated or flipped etc.), then the return value of the tile set data will be exactly equal to the index of the tile on the tile set. The engine, at first sight, seems a good choice for 2D game development. I won’t extend so much with this engine because I only have used it for less than 6 months, but here are my impressions: PROS.
If you need to get the tile data from a specific tile cell you should be using the function tilemap_get() instead. and I probably found more obstacles that made me give up with Unity after trying GameMaker Studio 2. This data is essentially a bit mask that contains the tile index, the flip/rotate/mirror booleans and any mask data that has been applied (see tilemap_set_mask() for details), and the resulting data value can then be used in the tile_* functions to change a tiles properties. You give the tile map element ID (which you get when you create a tile map element using layertilemapcreate() or when you use the function layertilemapgetid()), as well as the cell x and y position and the function will return the tile data 'blob'. You give the tile map element ID (which you get when you create a tile map element using layer_tilemap_create() or when you use the function layer_tilemap_get_id()) as well as the x and y position in the room to get the tile data from and the function will return the tile data "blob". Using this function you can retrieve the tile data from a cell of the tile map element. Using this function you can retrieve the tile data from a position (within the room) of the tile map element.