Page 1 of 1

How to draw all Tile Layers in a Tile Group?

Posted: Thu Oct 13, 2022 5:49 pm
by Sammm
Hello!

I'm using the STI (Simple Tiled Implementation) and I'm trying to draw all the tiles in a group layer called "Grass." I searched the STI documentation and I couldn't find a way to do this, and when I tried calling

Code: Select all

testmap:drawLayer(testmap.layers["Grass"]) 
I just got an error. How can I achieve this?

Here's an image showing the layout of my Tiled tile layers:
Screenshot 2022-10-13 12.47.25 PM.png
Screenshot 2022-10-13 12.47.25 PM.png (10.73 KiB) Viewed 8222 times
Thanks for any help!