-
Is there a way to iterate over all tiles in a tile layer? I see there is a data field in If there isn't any way to do that other than repeating |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There's currently no iterator implemented, you'll have to use |
Beta Was this translation helpful? Give feedback.
There's currently no iterator implemented, you'll have to use
get_tile
instead, sorry. You can use two nested fors, one for x and another for y, going from 0 to width/height non-inclusively.BTW: I recommend using
get_tile
instead ofget_tile_data
becauseTile
also allows you to obtain its map/tileset and even tileset tile data directly.