Advanced Tiled Loader - No longer maintained

Showcase your libraries, tools and other projects that help your fellow love users.
JumperKenny
Prole
Posts: 3
Joined: Tue Aug 28, 2012 6:21 pm

Re: Advanced Tiled Loader

Post by JumperKenny »

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
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: Advanced Tiled Loader

Post by KingRecycle »

Yeah, I did try map.draw_objects = false but it doesn't seem to work.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Advanced Tiled Loader

Post by Kadoba »

KingRecycle wrote:Yeah, I did try map.draw_objects = false but it doesn't seem to work.
It should be drawObjects.
JumperKenny wrote: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
It can be any value. Anything that isn't false or nil will test true.
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: Advanced Tiled Loader

Post by KingRecycle »

That works. Main post says otherwise is why I got confused.
User avatar
tv_user
Citizen
Posts: 57
Joined: Sun Aug 12, 2012 4:39 pm
Location: Portugal

Re: Advanced Tiled Loader

Post by tv_user »

Awesome library! It makes our days much easier
Did my comment help/offended you? Use the Karma button!!
LÖVEing each day...
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Advanced Tiled Loader

Post by Kadoba »

tv_user wrote:Awesome library! It makes our days much easier
I'm glad it helps you. :)
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: Advanced Tiled Loader

Post by KingRecycle »

So last night I remade a test map and set all the tiles to the correct properties.

But for some reason when I pass a variable to get tileData it errors.

So like ground.tileData(5,5).properties will work but

local x = 5
local y = 5

ground.tileData(x,y).properties will error.

I appreciate any help!

P.S. Excuse the messy code. I'm slowly changing everything.
Attachments
ProjectLearn.love
(6.27 MiB) Downloaded 130 times
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Advanced Tiled Loader

Post by Kadoba »

KingRecycle wrote:So last night I remade a test map and set all the tiles to the correct properties.

But for some reason when I pass a variable to get tileData it errors.

So like ground.tileData(5,5).properties will work but

local x = 5
local y = 5

ground.tileData(x,y).properties will error.

I appreciate any help!

P.S. Excuse the messy code. I'm slowly changing everything.
I'm not seeing that. I am however getting a nil index error when I try and move. That's because the code tries to access the tile properties without checking if the tile exists first.
User avatar
KingRecycle
Prole
Posts: 44
Joined: Thu May 24, 2012 1:01 am

Re: Advanced Tiled Loader

Post by KingRecycle »

Really? Because the code I have now was working perfectly before.

But yeah you are right. Wow I should of tried that but it was working before so I didn't bother.

Thanks a lot.
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Advanced Tiled Loader

Post by Karai17 »

Hey, I've been trying out ATL and I am loving it so far but I have hit a snag and I cannot understand the issue... I am getting the following error:
Error: libs/AdvTiledLoader/Object.lua:144: attempt to index local 'self' (a number value)
This error makes no sense to me as the library seems to be working flawlessly with the provided example maps. If you could have a quick gander to see if I am totally mucking things up, I'd appreciate it c:

Do excuse the mess, I am learning as I go and will of course pretty things up eventually. c:

https://dl.dropbox.com/u/12958391/ATL-wonky.zip.love
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
Post Reply

Who is online

Users browsing this forum: No registered users and 226 guests