2D Toolkit Forum

2D Toolkit => Support => Topic started by: tzamora on December 01, 2013, 01:37:25 am

Title: Rotate tile with z key
Post by: tzamora 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 :)
Title: Re: Rotate tile with z key
Post by: unikronsoftware 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