You're going to want two sets of numbers: grid_x/y and act_x/y.
You will use the grid set for checking collision and incrementing by whole numbers, and use the act[ual] set for your tween.
Simple Tiled Implementation - STI v1.2.3.0
Re: Simple Tiled Implementation - STI v0.7.4
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.7.4
probably should have said this beforehand, but i'm using a free-moving player, so it's not gridlocked. i'd assume it's the same method, so in either case i'll get on adding the grid_x/y thing
Re: Simple Tiled Implementation - STI v0.7.4
It's the same yeah, but you need to make sure your player doesn't change grids until he is actually moving to a new grid. In this case, you might want to do a sort of "search" for the nearest tile to determine which tile you should be comparing against.
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.7.4
Hi there, just coming by to say great work! This thing works wonders and soon I will hopefully have a game to show it!
Re: Simple Tiled Implementation - STI v0.7.4
I look forward to seeing how my STI works out for you. ;D
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.7.4
I'll be using this soon hopefully! I haven't used LÖVE in almost a year and when I came back to find that ATL was "abandoned" so to speak, I was so worried. I was thinking "How can I used Tiled maps in my games using LÖVE now?? I really don't feel like writing my own system", but then I saw this.
I hope that this can do everything I'd need it to do (load Tiled maps, get information on Tiled tiles for collision, and maybe even find/replace tiles inside a map for animated tiles and stuff). If it does, then I'll have found a very viable and useful replacement/alternative to ATL.
Anyway, I assume it can at least load maps and get information from specific tiles, so if it can do that then it's an even more extremely awesome library! Cookies to you!
I hope that this can do everything I'd need it to do (load Tiled maps, get information on Tiled tiles for collision, and maybe even find/replace tiles inside a map for animated tiles and stuff). If it does, then I'll have found a very viable and useful replacement/alternative to ATL.
Anyway, I assume it can at least load maps and get information from specific tiles, so if it can do that then it's an even more extremely awesome library! Cookies to you!
"In those quiet moments, you come into my mind" - Liam Reilly
Re: Simple Tiled Implementation - STI v0.7.4
The only thing STI does not currently support is tile animation, and a few other things in the issue tracker that I haven't had time to get to. Otherwise, you can load a map, get properties from the map, draw the map, etc.
Check out the documentation for more detailed info.
Check out the documentation for more detailed info.
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.7.4
This seems like it progressed quite a bit!
The last library I used for tile importing would load the tile but when I got towards the edge of the screen I'd see black not the end of the map, did your implementation solve this issue?
The last library I used for tile importing would load the tile but when I got towards the edge of the screen I'd see black not the end of the map, did your implementation solve this issue?
Re: Simple Tiled Implementation - STI v0.7.4
That is a camera issue, not a lib issue. You need to implement a camera check to see if you are displaying off screen or not.
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.7.4
Solved the camera problem, but working out another problem. Tiled Objects.
I want to animate my tiles and thought using objects and calling the object in love would make things easier.
Have an easy way of fixing this issue? I guess it's not really an Issue with STI but the documentation around tiled objects is scarce.
I want to animate my tiles and thought using objects and calling the object in love would make things easier.
Have an easy way of fixing this issue? I guess it's not really an Issue with STI but the documentation around tiled objects is scarce.
Who is online
Users browsing this forum: Semrush [Bot] and 4 guests