Flashpunk with a tilemap level editor. Need help!


(John Andersson) #21

Ok, we’re making progress here!

I can currently run the game with all of the files, but there is no visible map. I can control the characters, but the map isn’t “there”.


(Zachary Lewis) #22

Are you adding the map to the world? In GameWorld.as, you should have something like:

private var _map:Entity;
private var _mapGrid:Grid;
private var _mapTilemap:Tilemap;

// Create and load the grid and tilemap.
_mapGrid = new Grid(...);
_mapTilemap = new Tilemap(...);

// Add them as a new entity.
_map = add(new Entity(0, 0, _mapTilemap, _mapGrid));