Skip to content

Multi-tile entities and disabling this crate rendering certain tiles on a per-entity basis #304

Answered by bzm3r
Veritius asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Yes, there is support for this. A TilemapBundle has two components: TilemapGridSize, and TilemapTileSize. TilemapGridSize tells you the spacing between grid points, while TilemapTileSize specifies the size of the tiles to be placed at each grid point. If you look at examples/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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Veritius
Comment options

@StarArawn
Comment options

@Veritius
Comment options

@bzm3r
Comment options

@Veritius
Comment options

Answer selected by Veritius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants