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
FlxTilemap.loadMap() doesn't initialize widthInTiles, but expects it to be zero. It only updates widthInTiles based on the provided map if widthInTiles is 0, which means that loading a new map into an already-initialized FlxTilemap does not change the width of the map.
I suggest that loadMap() set widthInTiles to 0 near where it sets the value of heightInTiles, which will allow the later while loop to properly set the tilemap's new width.
The text was updated successfully, but these errors were encountered:
Issue #197 by: GregoryWeir
FlxTilemap.loadMap() doesn't initialize widthInTiles, but expects it to be zero. It only updates widthInTiles based on the provided map if widthInTiles is 0, which means that loading a new map into an already-initialized FlxTilemap does not change the width of the map.
I suggest that loadMap() set widthInTiles to 0 near where it sets the value of heightInTiles, which will allow the later while loop to properly set the tilemap's new width.
The text was updated successfully, but these errors were encountered: