Page 45 of 92

Re: Simple Tiled Implementation - STI v0.14.1.11

Posted: Thu Jan 07, 2016 9:39 am
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

Re: Simple Tiled Implementation - STI v0.14.1.11

Posted: Tue Jan 12, 2016 7:36 pm
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.)

Re: Simple Tiled Implementation - STI v0.14.1.11

Posted: Tue Jan 12, 2016 7:43 pm
by Nixola
It looks as if spritebatches were drawn in the wrong order, at a first glance

Re: Simple Tiled Implementation - STI v0.14.1.11

Posted: Tue Jan 12, 2016 7:45 pm
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.

Re: Simple Tiled Implementation - STI v0.14.1.11

Posted: Tue Jan 12, 2016 7:50 pm
by Karai17
Try adjusting the draw order in Tiled. STI supports all the draw orders.

Re: Simple Tiled Implementation - STI v0.14.1.11

Posted: Tue Jan 12, 2016 8:01 pm
by Rishavs
well right down and left down give me this exact output. the other two completely wonky up my map. :cry:

Re: Simple Tiled Implementation - STI v0.14.1.11

Posted: Tue Jan 12, 2016 8:37 pm
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.

Re: Simple Tiled Implementation - STI v0.14.1.12

Posted: Tue Jan 12, 2016 8:59 pm
by Karai17
I pushed a fix, let me know if it works for you.

Re: Simple Tiled Implementation - STI v0.14.1.12

Posted: Wed Jan 13, 2016 3:31 am
by Rishavs
nup. still the same. :(

attaching the map for you.

Re: Simple Tiled Implementation - STI v0.14.1.12

Posted: Fri Mar 18, 2016 11:45 pm
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