2D Toolkit Forum

2D Toolkit => Support => Topic started by: esdot on August 19, 2014, 12:04:14 am

Title: TileEditor - Flip Horizontal is flipping the artwork
Post 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,
Title: Re: TileEditor - Flip Horizontal is flipping the artwork
Post by: unikronsoftware on August 19, 2014, 02:58:26 pm
Hi,

You can turn this off in tk2dTileMapSceneGUI.cs,
UpdateWorkingBrush

comment out these lines -
Code: [Select]
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);
}
Title: Re: TileEditor - Flip Horizontal is flipping the artwork
Post by: esdot on August 19, 2014, 04:35:06 pm
Thanks! Your support is top notch :)