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
Advanced Tiled Loader - No longer maintained
- KingRecycle
- Prole
- Posts: 44
- Joined: Thu May 24, 2012 1:01 am
Re: Advanced Tiled Loader
Yeah, I did try map.draw_objects = false but it doesn't seem to work.
Re: Advanced Tiled Loader
It should be drawObjects.KingRecycle wrote:Yeah, I did try map.draw_objects = false but it doesn't seem to work.
It can be any value. Anything that isn't false or nil will test true.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
- KingRecycle
- Prole
- Posts: 44
- Joined: Thu May 24, 2012 1:01 am
Re: Advanced Tiled Loader
That works. Main post says otherwise is why I got confused.
Re: Advanced Tiled Loader
Awesome library! It makes our days much easier
Did my comment help/offended you? Use the Karma button!!
LÖVEing each day...
LÖVEing each day...
Re: Advanced Tiled Loader
I'm glad it helps you.tv_user wrote:Awesome library! It makes our days much easier
- KingRecycle
- Prole
- Posts: 44
- Joined: Thu May 24, 2012 1:01 am
Re: Advanced Tiled Loader
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.
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 138 times
Re: Advanced Tiled Loader
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.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.
- KingRecycle
- Prole
- Posts: 44
- Joined: Thu May 24, 2012 1:01 am
Re: Advanced Tiled Loader
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.
But yeah you are right. Wow I should of tried that but it was working before so I didn't bother.
Thanks a lot.
Re: Advanced Tiled Loader
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:
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
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:Error: libs/AdvTiledLoader/Object.lua:144: attempt to index local 'self' (a number value)
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é
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 0 guests