Closed Blist closed 8 years ago
Some strange thing,
if I trace the transform.pos of each geometry that I have update, holes disappear ...
Without trace : With trace :
Snippet
public function uplayer(name:String, depth:Float) {
var layer:luxe.tilemaps.TilemapVisualLayerGeometry = tilemap.visual.geometry_for_layer(name);
for (row in layer) {
for (tile in row) {
if (tile != null) {
tile.depth = depth;
trace(tile.transform.pos);
}
}
}
}
Maybe, tilemap refresh his display before that all tiles are updates ?
Fixed with 5c38950 and 596c821. Geometry sorting was getting confused due to some subtle bugs.
Hi,
I have a map with multiple layer. I want to make the depth of a layer behind my player, but I have a bug that occurs randomly. When I want to change the depth of a whole layer some tiles disappear.
Important thing: I don't have this bug on cpp build just with web build.
my code to update the depth
A snippet to reproduce the bug :
the tile is use for the snippet (from PentaHelix's issue)