How to draw all Tile Layers in a Tile Group?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Sammm
Prole
Posts: 37
Joined: Fri Sep 09, 2022 4:39 pm

How to draw all Tile Layers in a Tile Group?

Post 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 6828 times
Thanks for any help!
Lua is LÖVE, lua is life
Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests