Search found 4 matches

by Kubba
Tue Mar 16, 2021 10:37 pm
Forum: Support and Development
Topic: Question: STI and Windfield: Building Polygon Objects from Tables
Replies: 9
Views: 4921

Re: Question: STI and Windfield: Building Polygon Objects from Tables

Well that certainly did the trick. local semiSlope = levelMap.layers["semiSolidSlope"].objects for objnum = 1, #semiSlope do local polygons = {} local polyObj = semiSlope[objnum].polygon for vertNum = 1, #polyObj do local vert = polyObj[vertNum] table.insert(polygons, vert.x) table.insert(...
by Kubba
Tue Mar 16, 2021 8:00 pm
Forum: Support and Development
Topic: Question: STI and Windfield: Building Polygon Objects from Tables
Replies: 9
Views: 4921

Re: Question: STI and Windfield: Building Polygon Objects from Tables

The lua with the tables can be found here: https://github.com/KubbaYioka/Kubba-Gam ... tLevel.lua

The tables themselves begin on line 1604 and end on 1738.
by Kubba
Tue Mar 16, 2021 7:01 pm
Forum: Support and Development
Topic: Question: STI and Windfield: Building Polygon Objects from Tables
Replies: 9
Views: 4921

Re: Question: STI and Windfield: Building Polygon Objects from Tables

Thanks for the reply, Going in, I was concerned that modifying Tiled's generated files would cause issues and it appears I was right. I attempted the solution and changed the table structures and this results in an error. There is another aspect of STI (STI's init.lua) that expects to find the neste...
by Kubba
Tue Mar 16, 2021 2:59 am
Forum: Support and Development
Topic: Question: STI and Windfield: Building Polygon Objects from Tables
Replies: 9
Views: 4921

Question: STI and Windfield: Building Polygon Objects from Tables

Hello, For a few hours now, I have been attempting to build static collider boxes in Windfield using object layers created in Tiled (so I'm using STI). I can make rectangles easily enough, but polygons are giving me trouble because they take vertices (x1, y1, x2, y2, etc), but the lua file with thos...