You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2022. It is now read-only.
Tried to offset a tile layer to make tiles appear 3D using z_layers, add_layer, and layer_offset.
What you expected to happen
Two things:
Originally I thought that each subsequent tile layer after the first would be offset by the amount specified in layer_offset, but then I thought ...
Wouldn't the layer_offset just offset all layers as it is only a single value on the Tilemap, therefore the whole map would be offset and not individual layers? - is there a way to offset a single layer? Like on the add_layer function?
What actually happened
Nothing was offset.
Additional information
This was tested on an alteration of your Hex Tile Odd Rows example.
The only alterations being that I changed the hex to a 3d one and used just a single chunk.
As well as the below code.
I'm sorry if I'm getting something obviously wrong here, I've tried reading the doc comments on the function calls but I couldn't find any examples in the repo that used layer_offset.
Thanks for any help you might have, you've created an excellent extensible plugin here.
The text was updated successfully, but these errors were encountered:
Yeah, once 0.5 hit, lots of stuff was rushed out to get the release in on time. I hadn't made any examples to test all the new features yet. Thanks for filing this.
I thought I might have found it as I wasn't adding the z index to the Tile points, which I tried doing.
I was sure this would fix it but it still isn't displaying, but I am getting a warning about a tile being out of bounds - even with enough layers added.
Bevy Tilemap version
0.4.0
Operating system & version
Windows 10
What you did
Tried to offset a tile layer to make tiles appear 3D using z_layers, add_layer, and layer_offset.
What you expected to happen
Two things:
What actually happened
Nothing was offset.
Additional information
This was tested on an alteration of your Hex Tile Odd Rows example.
The only alterations being that I changed the hex to a 3d one and used just a single chunk.
As well as the below code.
I'm sorry if I'm getting something obviously wrong here, I've tried reading the doc comments on the function calls but I couldn't find any examples in the repo that used layer_offset.
Thanks for any help you might have, you've created an excellent extensible plugin here.
The text was updated successfully, but these errors were encountered: