deepnight / gameBase

Base structure for my games, using Heaps framework and Haxe language.
https://deepnight.net
MIT License
606 stars 149 forks source link

You can't iterate on a Dynamic value #96

Closed JotaEmePM closed 1 year ago

JotaEmePM commented 1 year ago

Hi!!

I just clone my repo from your template button, then i've tried to build using DirectX, and this error appear over Level.hx: "You can't iterate on a Dynamic value, please specify Iterator or Iterable"

Level.hx

var layer = data.l_Collisions;
for( autoTile in layer.autoTiles ) {
    var tile = layer.tileset.getAutoLayerTile(autoTile);
    tg.add(autoTile.renderX, autoTile.renderY, tile);
}
VodkaBeerFatRat commented 1 year ago

I got the same issue when compile without [-debug] option. With [-debug] everything ok.