-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlxTileMap behaves differently Neko vs CPP #1520
Comments
Code to reproduce? Flixel version? |
This is the latest dev branch. I'll work on pulling some code out to reproduce. |
This CSV can be used to reproduce:
The wall file I am using is https://drive.google.com/file/d/0ByA4i-641qG2ZkRaTV9YaDAxS3M/view?usp=sharing Also to note, I have not tried this on anything other then OSX yet. I will try in Windows and Linux and report back. |
This is an issue on all platforms. |
I have got a similar issue that might be related to this, my FlxTileMap is incorrectly parsed from a TiledLayer when using CSV format - works fine with base64 and 1D arrays. More infos in this forum post: http://haxeflixel.com/forum/?place=msg%2Fhaxeflixel%2F5FgwBq6nWhs%2F3_pdcsOBCAAJ |
This happens because trailing commas are parsed differently on different platforms. Has nothing to do with rendering or auto-tiling. package;
import flixel.FlxState;
import flixel.graphics.FlxGraphic;
import flixel.tile.FlxTilemap;
import flixel.util.FlxColor;
class PlayState extends FlxState
{
override public function create():Void
{
bgColor = FlxColor.WHITE;
var tilemap = new FlxTilemap();
tilemap.loadMapFromCSV("1,", FlxGraphic.fromClass(GraphicAuto));
add(tilemap);
trace(tilemap.getData()); // [1] on neko, [1,0] on flash and cpp
}
} |
In Neko, FlxTileMap behaves as expected.

In CPP, however, there is what appears to be a rending issue.

You'll notice on the right side, there is extra tiles and some background showing.
The text was updated successfully, but these errors were encountered: