-
I'm wondering about three main things right now.
|
Beta Was this translation helpful? Give feedback.
Answered by
bzm3r
Oct 4, 2022
Replies: 1 comment 5 replies
-
Note however that every Tilemap can only contain tiles of the same size. So like the example
|
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Veritius
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TilemapBundle
has two components:TilemapGridSize
, andTilemapTileSize
.TilemapGridSize
tells you the spacing between grid points, whileTilemapTileSize
specifies the size of the tiles to be placed at each grid point. If you look atexamples/animation.rs
, you will see how the flower tiles are bigger (twice the size) of the background grass tiles, but the flowers share the same grid size as the background, so that we can place them relative to the background tiles.Note however that every Tilemap can only contain tiles of the same size. So like the example
animation.rs
, you will want to have one Tilemap "layer" for each tile size: flowers and background.