I report this under here, but do not known if this is a real bug.
When i make a animation and this is about 16 tiles long. This is all working fine. In the map editor the animation is showing nice.
Then i explort the map as a TMX file. Still no problem. But when i read the file in by using PureBasic the whole map is working but the animation is placed on the wrong place with one tile off, the rest of the animation is ok.
I make a row of water wave. The row is animating trough the tiles. So it look like the water is waving from left to right.
The tile set is 9 tiles wide and 5 tiles high Thats including other tiles that are used to. On tile 28 trough 43 the tiles are in sequal to animate the wave. The first tile is number 28. When i look in the TMX file it say the first tile is 27. But in the data part the first animated tile is number 28.
Now i do understand the the tile counting may be starting with number 0 then the tile number 27 is correct. But the data set is counting with a start number 1. That is one number of.
Is there a reason why this is done. i has to correct the code in PureBasic to make it work.