RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
ThousandKnives
Wandering Minstrel


Joined: 17 May 2003
Posts: 147
Location: Boston

PostPosted: Wed Aug 15, 2007 6:49 pm    Post subject: tiled tile flipping [quote]

Has anyone here written an extension to Tiled that allows horizontal and vertical flipping of tiles? Unfortunately I don't know a lick of Java so I'm not in a position to do this myself. I'm currently working on a homebrew project for Nintendo DS and so to get full use of tile modes I need to be able to flip my tiles.

I consider tiled to otherwise be a great map editor but the lack of this feature makes it pretty much useless for NDS. If anyone knows a solution or can suggest another editor that has this feature I would appreciate it greatly. Thanks in advance.
Back to top  
Rainer Deyke
Demon Hunter


Joined: 05 Jun 2002
Posts: 672

PostPosted: Wed Aug 15, 2007 8:17 pm    Post subject: [quote]

Tile Studio has this feature.
Back to top  
ThousandKnives
Wandering Minstrel


Joined: 17 May 2003
Posts: 147
Location: Boston

PostPosted: Thu Aug 16, 2007 4:00 pm    Post subject: [quote]

Rainer Deyke wrote:
Tile Studio has this feature.

Thanks for the tip!

After downloading Tile Studio and playing with it for a few minutes I'm not very impressed with the actual editing interface, especially when compared to Tiled. The easy-stamping feature in Tiled is a huge time saver, especially when you have to assemble little 8x8 Nintendo DS tiles into 16x16 squares, and the tile palette display at the bottom of the screen as a single row also doesn't work well for little 8x8 tiles. And having to select the values for all 3 layers any time a change is made is as far as I'm concerned an active attempt by the designer to make the program irritating to use.

But, it does allow flipping! :-)
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Tue Aug 21, 2007 8:09 am    Post subject: [quote]

Hmm, tile flipping (and rotating) wasn't included in Tiled since it was thought to be easy enough to flip and rotate as necessary in the tile editing tool (like GIMP). Of course this makes your tileset larger, but then in the common case (where shading is done right, for example), simple flipping and rotating is useless anyway.

Do you mean the DS flips in hardware, so that drawing flipped tiles doesn't take additional memory? In that case I guess it would be useful for Tiled to have support for it, though I'm not sure yet about how this could be added to the GUI and map format without making things more complicated for those who don't use it.
Back to top  
ThousandKnives
Wandering Minstrel


Joined: 17 May 2003
Posts: 147
Location: Boston

PostPosted: Tue Aug 21, 2007 3:29 pm    Post subject: [quote]

Bjørn wrote:
Do you mean the DS flips in hardware, so that drawing flipped tiles doesn't take additional memory? In that case I guess it would be useful for Tiled to have support for it, though I'm not sure yet about how this could be added to the GUI and map format without making things more complicated for those who don't use it.

Yes, DS does hardware flipping. Tiled modes consist of two areas of memory, one which stores your array of 8x8 tiles (either 256 8-bit paletted tiles or 512 4-bit paletted tiles) and another that stores the map data. The map data elements are 16-bit and contain the address within the tile storage and also have extra bits with extended features such as applying a horizontal or vertical flip, or which of the 16 available palettes to apply when using 4-bit mode.

As for GUI I think the best way would simply be to have two toggle buttons that tell the program how to apply the appropriate flip to any application of tiles. If tiles that already have a flip value are copied that value would be copied and transformed by the toggles as appropriate (so if an H flipped tile is copied and the applied when the H flip toggle is set, it would be returned the an unflipped status). If you want to keep things simple for people who don't need it, you could perhaps make it an option during map setup whether to allow tile flipping.

As for storing the data it would probably be best to think of the flipping data as an extra layer. There can only be 4 values so 2 bits per tile are sufficient, one bit sets H flip and the other bit sets V flip (thats how the DS does it).

It would be a great feature if you ever get around to it. Tiled is a really great map editor. I used it for my first demo DS project Martian DS. It didn't use a lot of tiles, so I could get away with storing the extra flipped tiles instead of using the hardware. I couldn't use it for a serious DS project without such a feature though.
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum