index is the unique (to this tile set) integer index for this tile. This index is used in map layers (background and object). Indexes from 1 through 1023 are allowed
thanks a lot for help. but i don't understand tile x and y offset. i made it 0,0 because i thought that tiles don't have offset. they really should be 16,16?
Traceback (most recent call last): File "./tilesetdef-generator.py", line 99, in <module> main() File "./tilesetdef-generator.py", line 44, in main for prop in root.find('properties').findall('property'): AttributeError: 'NoneType' object has no attribute 'findall'
btw, when i tried to make map manually i got black screen (except minimap that shows collision level correctly) though i'm sure i did all right. is there any limits to tilesets?
i use tilesets from the mana world and dew tilesets from here and deviantart.
most of them are 32x32 but from time to time size changes. i can avoid it by creating many layers but isn't there any automated way to export tiled maps to flare?
sweet. i still have engine to make game ^_^_^
flare game has just 3 tilesets while i have about 40-50 and common size of tileset is 512x512 that means 256 tiles 32x32
1st map - center of big city (173x144 tiles) contain few buildings, castle, district for wealth citizens, park, bazaar small arena.
it's impossible now :(
index is the unique (to this tile set) integer index for this tile. This index is used in map layers (background and object). Indexes from 1 through 1023 are allowed
so i can use only 1023 tiles? O_o_O
thanks a lot for help. but i don't understand tile x and y offset. i made it 0,0 because i thought that tiles don't have offset. they really should be 16,16?
thanks. now i got
Traceback (most recent call last):
File "./tilesetdef-generator.py", line 99, in <module>
main()
File "./tilesetdef-generator.py", line 44, in main
for prop in root.find('properties').findall('property'):
AttributeError: 'NoneType' object has no attribute 'findall'
btw, when i tried to make map manually i got black screen (except minimap that shows collision level correctly) though i'm sure i did all right. is there any limits to tilesets?
File "script.py", line 6
tileset_w = 0
^
IndentationError: expected an indented block
that's what i get whan try use it
convert *.png -append output.png
creating one tileset from many.
well, export maps for flare is real hell. i made 1st map few weeks and looks like i will export it even longer.
one fox gave my a semi automatic python script. so i use bash commandto get list of images' resolutions
identify * | cut -f 3 -d' '
and script for calculating
step = input('Step: ')
count = 1
y1=0
fo = open("./tilesetdef", "rw+");
while(1):
x1 = 0
x2 = step
y2 = step
imagex = input("Wight: ")
imagey = input("Heght: ")
dimx = imagex/step
dimy = imagey/step
i = 0
j = 0
while (j < dimy):
while(i < dimx):
s = 'tile={},{},{},{},{},0,0'.format(count,x1,y1,step,step)
fo.write(s+'\n')
count+=1
i+=1
x1+=step
x1=0
x2=step
y1+=step
y2+=step
j+=1
i=0
i use tilesets from the mana world and dew tilesets from here and deviantart.
most of them are 32x32 but from time to time size changes. i can avoid it by creating many layers but isn't there any automated way to export tiled maps to flare?
Pages