Dec 4, 2014

A guide to create a TileMap for HaxeFlixel

When you create a TileMap in HaxeFlixel, it asks you to provide a map and some tile's graphics.
The beauty of this tool is to automatically set the layout for blocks and decide which is facing which.
So in addition to the map that can be a csv file or a black and white image converted with FlxStringUtil.imageToCSV(), you have to provide a strip containing all the tiles for every situations.

But you need to respect a precise order for FlxTilemap to understand it.
I did this visual aid to save some time. It tells which side is connected. I hope it will help others:

The tile strip comes from here:

As you can see, the order follow some kind of pattern but I still can't wrap my head around it ...

No comments:

Post a Comment