Search found 3 matches

by JumperKenny
Wed Aug 29, 2012 5:59 pm
Forum: Libraries and Tools
Topic: Advanced Tiled Loader - No longer maintained
Replies: 255
Views: 64935

Re: Advanced Tiled Loader

In Tiled i have to create a Tilelayer called "ground" and the stone should have the tile property "stone" with no value?

EDIT: Aaaah I think I've got my problem! Seems like I drew some invisible tiles in the tilelayer :P
by JumperKenny
Wed Aug 29, 2012 4:54 pm
Forum: Libraries and Tools
Topic: Advanced Tiled Loader - No longer maintained
Replies: 255
Views: 64935

Re: Advanced Tiled Loader

You have to iterate through all of the tiles when you load the map and mark the ones you want. Here's a quick example: local stone = {} local layer = map.tileLayers["ground"] for x, y, tile in layer.tileData:iterate() do if tile.properties.type == "stone" then stone[ #stone+1 ] = tile end end And n...
by JumperKenny
Tue Aug 28, 2012 6:40 pm
Forum: Libraries and Tools
Topic: Advanced Tiled Loader - No longer maintained
Replies: 255
Views: 64935

Re: Advanced Tiled Loader

Hi!
I'm a beginner on löve and would like to ask if it's possible to find out where a specific tile is drawn..

If I have a grass map and there is one stone in the grass
How can i get the x,y of the stone

I'm sorry for my bad english :( :P