Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have been working with Tiled and Cocos2d lately but am having problems understanding how Im suppose to be doing the maps.
Tiled is not an image editor, so I create my tileset in Gimp. However it seems impossible for me to get grid lines that are the same as Tiled and so I dont know prior to importing the image (into Tiled) where the grid lines will be.

See the image below. Both Tiled and Gimp's grid lines are set to 32px however the grid lines are nothing alike between the two programs

How can I get the grid lines to match so that I can draw stuff knowing how many tiles it will take. Is there a better program for creating tileset or another way to do it?

enter image description here

share|improve this question
    
Are those green tiles are different tiles? –  Jon Mar 21 '13 at 16:13
    
this is my first map, and just trying to get a feel for how to do it. I understand this map is lacking, but why would I go all out at this stage prior to understanding all this stuff. Besides the green tiles, what makes this "horrible" what is a better way? –  owen gerig Mar 21 '13 at 16:15
    
Seems to me you are duplicating a lot of tiles that you shouldn't need to. Consider creating tileable textures instead. You will eliminate the hundreds of green tiles down to just a few. For example, instead of trying to fit your grid on top of your picture, create a multiple pictures based on your grid size. If you have 32x32 tiles, create your images based on that size. –  Jon Mar 21 '13 at 17:26
    
Right and thats the same if I scale these objects to 32x32. But the problem remains. I need these grid lines to match up in order to properly place them on my tileset image. Otherwise I would be moving them in gimp, saving, then opening it in tileset just to see the placement of the items to the grid lines. There should be a way to get the gridlines to match up in Gimp so I can plot the items first, then export to tiled. –  owen gerig Mar 21 '13 at 18:22
add comment

1 Answer 1

up vote 3 down vote accepted

It seems that the grid lines in Tiled are 64px, not 32. If you look at the top-left 'thing', it occupies 128px according to Gimp (and therefore takes up 4 grid spaces across, as expected). However, in Tiled it only uses up 2 grid spaces across. This leads me to believe that actually, the Tiled map editor uses a 64px by 64px grid, not a 32x32 one.

share|improve this answer
    
Dont know how I missed that. Thanks –  owen gerig Mar 22 '13 at 17:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.