Page 73 of 92

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Thu Sep 07, 2017 7:31 pm
by Karai17
Awesome, glad you figured it out. :)

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Mon Nov 13, 2017 9:16 am
by marimbab
is it just me/workingasintended or is Map.tiles populated only to the width/height of the TILESET and not the map dimensions in Map:setTiles()?

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Tue Dec 26, 2017 8:29 am
by KyleFlores1014
When I translate the map the collision boxes doesnt move it still works like normal but with the map moving.
Game.love
(178.65 KiB) Downloaded 224 times
(I also tried the tutorial on lua.space but cant figure out to add collisions on the layer.player.)

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Tue Dec 26, 2017 1:03 pm
by KyleFlores1014
KyleFlores1014 wrote: Tue Dec 26, 2017 8:29 am When I translate the map the collision boxes doesnt move it still works like normal but with the map moving.Game.love

(I also tried the tutorial on lua.space but cant figure out to add collisions on the layer.player.)
Also please do not copy our images/assets

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Tue Jan 02, 2018 10:12 am
by Marty
Hi Karai thanks for the great lib.

Check this:
Image

These are placed objects, and some have those first pixel line in any color. It's always the same on the same objects, but it seems to include the location, too, since the other tree stump is fine.

Strange, you got an idea?

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Tue Jan 02, 2018 10:26 am
by Karai17
It looks like you are scaling the the game a bit, is that correct? If so, how are you scaling it?

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Tue Jan 02, 2018 4:09 pm
by Marty
Karai17 wrote: Tue Jan 02, 2018 10:26 am It looks like you are scaling the the game a bit, is that correct? If so, how are you scaling it?
Yes I am. I think it happened because of uneven scaling that occurred through gamera, but I cannot reproduce anymore, since I kept working on it and now it doesn't happen.

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Tue Jan 02, 2018 4:21 pm
by Karai17
cool :)

I would personally recommend against using gamera with STI and instead use map:draw(tx, ty, sx, sy), but if you got it working then feel free to disregard. :D

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Wed Jan 03, 2018 9:36 pm
by Marty
Karai17 wrote: Tue Jan 02, 2018 4:21 pmI would personally recommend against using gamera with STI and instead use map:draw(tx, ty, sx, sy)
May I ask: Why?

I found a sample game that works very well in that constellation and I got it to work, too, although I'm not at camera movement at this point. Btw, scaling is required for me in any case.

Re: Simple Tiled Implementation - STI v0.18.2.1

Posted: Wed Jan 03, 2018 9:53 pm
by Karai17
The way sti needs to manage graphics state is not necessarily compatible with using external libs, at least I cannot guarantee that they will work. If it works for you, have at it, but if there is an issue then perhaps look into using map:draw()'s args instead of a camera helper lib