Simple Tiled Implementation - STI v1.2.3.0

Showcase your libraries, tools and other projects that help your fellow love users.
premek
Prole
Posts: 21
Joined: Mon Dec 28, 2015 12:44 am
Contact:

Re: Simple Tiled Implementation - STI v0.14.1.11

Post by premek »

Karai17 wrote:I would not actively use object layers, I would transfer object data over to a custom layer if you plan to create dynamic objects.
OK, thanks, will try it
User avatar
Rishavs
Party member
Posts: 103
Joined: Sat Oct 17, 2009 5:29 am
Contact:

Re: Simple Tiled Implementation - STI v0.14.1.11

Post by Rishavs »

Hi Karai

I will try to explain my issue again.
When I try to use staggered isometric maps, the 21st column of tiles overlaps on top of 20th tile column.

I am adding screenies to better explain what I mean.

Of course when I use map bounds, then that exact column becomes the cut off for the map (so even if my map was a 50x50 grid, it will only render 21x21. If i dont use map bounds then all tiles are rendered however the 21st tiles render on top of the 20th one.)
Attachments
2.png
2.png (146.07 KiB) Viewed 4587 times
1.png
1.png (221.42 KiB) Viewed 4587 times
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Simple Tiled Implementation - STI v0.14.1.11

Post by Nixola »

It looks as if spritebatches were drawn in the wrong order, at a first glance
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Rishavs
Party member
Posts: 103
Joined: Sat Oct 17, 2009 5:29 am
Contact:

Re: Simple Tiled Implementation - STI v0.14.1.11

Post by Rishavs »

yeah. its as if STI first draws the first 20 tiles in a row then start with next row. after 20x20 is done, then we start on the next batch.
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.14.1.11

Post by Karai17 »

Try adjusting the draw order in Tiled. STI supports all the draw orders.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
User avatar
Rishavs
Party member
Posts: 103
Joined: Sat Oct 17, 2009 5:29 am
Contact:

Re: Simple Tiled Implementation - STI v0.14.1.11

Post by Rishavs »

well right down and left down give me this exact output. the other two completely wonky up my map. :cry:
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.14.1.11

Post by Karai17 »

I think the issue is that sprite batches aren't being drawn in the right order, just being prepared in that order. I can fix that.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.14.1.12

Post by Karai17 »

I pushed a fix, let me know if it works for you.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
User avatar
Rishavs
Party member
Posts: 103
Joined: Sat Oct 17, 2009 5:29 am
Contact:

Re: Simple Tiled Implementation - STI v0.14.1.12

Post by Rishavs »

nup. still the same. :(

attaching the map for you.
Attachments
map.png
map.png (50.32 KiB) Viewed 4530 times
testMap.lua
(2.42 KiB) Downloaded 109 times
User avatar
zugende
Prole
Posts: 12
Joined: Sun Feb 21, 2016 5:47 pm

Re: Simple Tiled Implementation - STI v0.14.1.12

Post by zugende »

Hi everyone,

not sure If i missed something..but I can't find the sti.lua file. Can someone help me? :crazy:

Thaaanks a lot!
Best
Basti
Attachments
sti.JPG
sti.JPG (63.01 KiB) Viewed 4168 times
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests