Simple Tiled Implementation - STI v1.2.3.0
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: Simple Tiled Implementation - STI v0.16.0.3
Glad I could help! <3
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Re: Simple Tiled Implementation - STI v0.16.0.3
Yeah. So I have my code setup like on the tutorial at Luaspace. My map is in the correct directory. However it's saying when I try to add a new map "attempt to call field "new" (a nil value)" any suggestions?
Re: Simple Tiled Implementation - STI v0.16.0.3
The API was slightly changed and my pull request to the tutorial hasn't been approved yet. You simply want to do sti() instead of sti.new()
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é
Re: Simple Tiled Implementation - STI v0.16.0.3
Thanks so much!
- Daniel Eakins
- Citizen
- Posts: 99
- Joined: Thu Jul 18, 2013 9:14 pm
- Location: France
Re: Simple Tiled Implementation - STI v0.16.0.3
Hey Karai, I've been slowly getting back into coding and I'm kinda embarrassed because I can't get this module to work anymore
More specifically, I don't know what to put in the functions to refer to a layer!
For example, just taking the example demo on GitHub and replacing this one line:
with this:
gets me an error:
More specifically, I don't know what to put in the functions to refer to a layer!
For example, just taking the example demo on GitHub and replacing this one line:
Code: Select all
map:draw()
Code: Select all
map:drawLayer("Grid")
Am I doing it wrong or is there a bug maybe?sti/init.lua:698: attempt to perform arithmetic on field 'opacity' (a nil value)
Re: Simple Tiled Implementation - STI v0.16.0.3
drawLayer is looking for a layer object, not just the layer name.
Code: Select all
local layer = map.layers["Grid"]
map:drawLayer(layer)
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é
- Daniel Eakins
- Citizen
- Posts: 99
- Joined: Thu Jul 18, 2013 9:14 pm
- Location: France
Re: Simple Tiled Implementation - STI v0.16.0.3
Awesome thanks for the quick reply
Re: Simple Tiled Implementation - STI v0.16.0.3
How does one create a texture atlas in Tiled? I was going to take STI for a spin and it spat out that it doesn't support tilesheets, only texture atlases.
P.S. My Tiled for some reason set itself to the system language, so tell me not only the button name, but where to find it.
P.S. My Tiled for some reason set itself to the system language, so tell me not only the button name, but where to find it.
Re: Simple Tiled Implementation - STI v0.16.0.3
Tilesheet is an atlas, just built using different conventions. Try running it through atlas generating software, load final final atlas and define sprites in it manually. If that won't work, you can always just feed tiles into it one by one and it'll generate proper atlas.
Re: Simple Tiled Implementation - STI v0.16.0.3
I don't know any such software - any tips?raidho36 wrote:Tilesheet is an atlas, just built using different conventions. Try running it through atlas generating software, load final final atlas and define sprites in it manually. If that won't work, you can always just feed tiles into it one by one and it'll generate proper atlas.
Maybe there's a sample working map somewhere I could throw at STI to see how it works?
Who is online
Users browsing this forum: Amazon [Bot] and 5 guests