Search found 4 matches

by kinderalpha
Tue Dec 24, 2019 5:49 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 826
Views: 256985

Re: Simple Tiled Implementation - STI v1.2.3.0

Thank you so much for the help guys! I'm so thrilled to have figured this out. Here's what I ended up doing, and some things I didn't understand. So below is the full code for opening a door and closing a door. -- x, y is the tile location of the door local layer = tilemap.map.layers['Door'] -- Laye...
by kinderalpha
Mon Dec 23, 2019 10:16 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 826
Views: 256985

Re: Simple Tiled Implementation - STI v1.2.3.0

Why don't you use objects if it is something like a door? Changing the tilelayer feels somewhat strange and did you try: local tile = layer.data[8][5] I did try that to no avail. If I could use objects that would be great but I cant draw objects with a tile image (right?). On tiled I can only place...
by kinderalpha
Mon Dec 23, 2019 9:21 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 826
Views: 256985

Re: Simple Tiled Implementation - STI v1.2.3.0

The way you layed this out makes a lot more sense to me compared to what I've read elsewhere. I understand it now, I just need to know one more detail. To get the tile instance, you first need to get the it's tile from it's position: local layer = map.layers["layer_name"] local tile = layer.data[y][...
by kinderalpha
Mon Dec 23, 2019 7:57 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 826
Views: 256985

Re: Simple Tiled Implementation - STI v1.2.3.0

Hey, I see this thread isn't that active anymore but hoping for some help. The data structure for this module has my head turning. Trying to figure out how to swap a tile with a different tile (door open, door closed). Dug through a few "solutions" that I can't seem to get to work. Mainly due to the...