Search found 852 matches

by Karai17
Tue May 01, 2018 9:03 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

Sensors don't have collision responses, only detections. They are used for walking over top of things like a button that triggers a door to open.
by Karai17
Mon Apr 30, 2018 9:49 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

In Tiled, are you creating layers or objects with a property called "collidable" and setting the value to a boolean true?
by Karai17
Mon Apr 30, 2018 2:45 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

Huzzah! I'm glad you figured it out. :)
by Karai17
Mon Apr 30, 2018 9:56 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

Are you enabling the box2d plugin and initializing it?
by Karai17
Sun Apr 29, 2018 6:41 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

I'll be honest, I don't really know much about bump, I didn't write the bump plugin it was sent via a PR. Perhaps you could pm the author of bump and see if they can help?
by Karai17
Sun Apr 29, 2018 5:43 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

I think you need to examine your data. When I pairs through other.properties, it is empty. I don't really know what else I can say other than to examine your data and make sure you're passing in what you think you are.
by Karai17
Sun Apr 29, 2018 5:06 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

First off, I have a couple pointers. 1) Lua's module system isn't quite the same as system paths so when you require a module, you should use "." instead of "/". This helps with caching and other such things. sti = "libs.sti" 2) Your code seems to have both spaces and tabs for indenting. It doesn't ...
by Karai17
Sun Apr 29, 2018 11:48 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

Yes, but it seems like the "other" variable you are passing in to your function is not correct. Do you have a .love file I can look at?
by Karai17
Sun Apr 29, 2018 11:40 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

So there is no "collidable" property. Make sure you're passing the right properties table into your function.
by Karai17
Sun Apr 29, 2018 8:27 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v0.18.2.1
Replies: 770
Views: 133455

Re: Simple Tiled Implementation - STI v0.18.2.1

You want to print out all the data in that table to see what's in there, so use the following code at the top of your function.

Code: Select all

for k, v in pairs(other.properties) do
   print(k, v)
end