2D Toolkit Forum
2D Toolkit => Support => Topic started by: esdot on August 19, 2014, 12:04:14 am
-
In TileEditor, when we make a stamp, and flip it, the artwork itself is actually being flipped:
http://cl.ly/image/2e2o3g0B2323
You can see how the perspective is totally ruined.
Would it be possible to modify this behavior to only flip the tile positions, but leave the artwork orientation intact?
For now this great feature is unusable due to our isometric look.
Cheers,
-
Hi,
You can turn this off in tk2dTileMapSceneGUI.cs,
UpdateWorkingBrush
comment out these lines -
if (rot90) {
int tmp = tx;
tx = ty;
ty = -tmp;
// tk2dRuntime.TileMap.BuilderUtil.SetRawTileFlag(ref spriteId, tk2dTileFlags.Rot90, true);
}
if (flipH) {
tx = -tx;
// tk2dRuntime.TileMap.BuilderUtil.InvertRawTileFlag(ref spriteId, tk2dTileFlags.FlipX);
}
if (flipV) {
ty = -ty;
// tk2dRuntime.TileMap.BuilderUtil.InvertRawTileFlag(ref spriteId, tk2dTileFlags.FlipY);
}
-
Thanks! Your support is top notch :)