Hello Guest

Author Topic: Rotate tile with z key  (Read 4221 times)

tzamora

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 10
    • View Profile
Rotate tile with z key
« on: December 01, 2013, 01:37:25 am »
Hi. I love the tilemap feature, but I would like to add a feature.

In this tool Tiled, each time I press the key z the tile is rotated to the right. Thats is 90 degres to the right;

Thats all. I would like to know if this request is possible to do now, and If true, then I would like some guidance as to were could I put this code.

Thanks :)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Rotate tile with z key
« Reply #1 on: December 01, 2013, 12:09:24 pm »
You can rotate the tile by clicking on the tile map toolbar button. It doesn't rotate incrementally like tiled, but just toggles rotation - you  can get all possible rotations by using a combination of flip + rotate. If you want to add a shortcut key, implement rotation like Tiled look for this "// Hotkeys toggle flipping, scratchpad, paint" in tk2dTileMapSceneGUI.cs