Ok. I entirely give up with this engine. I gave the rpg thing another try and it's either me really dumb (please dont say im dumb just because you have more coding knowledge, i just started coding a week ago)
The way this engine and Advanced Tiled Loader works (atleast from what i undestand myself, thank the quality of all the ocmmunity tutorials) is if you want to find out if there is a tile on the "collisions" layer and on the specified coords, you have to do this:
map.layers["collisions"]:get(x?,y?), that will either return a table or nothing. It's impossible to use any type of collision library together with atl because tilemaps cant be converted into "body" objects, and converting each single tile on a layer would be too inefficient
please recommend me an engine that can compile into exe and uses a good language such as js or lua