Search found 930 matches

by Karai17
Thu Feb 20, 2020 1:01 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

For your collision issue, I don't think you're actually adding the player to your physics world. box2d_init parses the map into a physics world, but you will need to then add your player to that world manually. I believe the process here is to create a new fixture and shape but it's been a while sin...
by Karai17
Mon Feb 17, 2020 3:44 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

can you send me a .love file that i can test with?
by Karai17
Sun Feb 16, 2020 7:51 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

Hm... very strange. Are you using a release version of STI or the master branch in github?
by Karai17
Wed Feb 05, 2020 7:56 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

What I meant was that they *shouldn't* be globals, but the way you've defined them, they are. Globals are bad except in extremely specific cases and you should do your best to avoid them at almost all costs.
by Karai17
Tue Feb 04, 2020 11:14 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

hi5! I noticed that you have sx and sy as args but you don't actually use them, and that your px and py values are actually globals. You may want to tidy that up a bit before submitting a plugin. ;)
by Karai17
Tue Feb 04, 2020 4:07 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

The map.layers table is set up to both be an array and a hashmap, so you could override map.draw or create your own map.parallax_draw function and just loop through the layers table and draw them based on their parallax speed. local map = sti("maps/01.lua") map.custom_draw = function(self)...
by Karai17
Fri Jan 31, 2020 10:01 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

additional tutorials and plugins are very much welcome! feel free to make a pull request if you'd like the tutorial added to the main repo. credit yourself and all that too~
by Karai17
Mon Dec 30, 2019 6:48 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

it would seem that the object's name is not the exact same in your code and your map. strings are case sensitive.
by Karai17
Tue Dec 24, 2019 1:36 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 914
Views: 730444

Re: Simple Tiled Implementation - STI v1.2.3.0

Object layers support Tile Image Objects as part of the TIled spec, so you could use an object.
by Karai17
Wed Dec 18, 2019 6:47 pm
Forum: Libraries and Tools
Topic: Advanced Tiled Loader - No longer maintained
Replies: 260
Views: 177285

Re: Advanced Tiled Loader - No longer maintained

I guess my question is why did you take the time to update this very old library when there is already one that works with love 11?