Hello Guest

Author Topic: TileEditor - Flip Horizontal is flipping the artwork  (Read 3517 times)

esdot

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
TileEditor - Flip Horizontal is flipping the artwork
« 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,

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TileEditor - Flip Horizontal is flipping the artwork
« Reply #1 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);
}

esdot

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: TileEditor - Flip Horizontal is flipping the artwork
« Reply #2 on: August 19, 2014, 04:35:06 pm »
Thanks! Your support is top notch :)