Search found 2 matches

by HarshKnarsh
Thu Mar 17, 2022 2:28 am
Forum: Support and Development
Topic: Looping through a table and calculating distance
Replies: 4
Views: 2969

Re: Looping through a table and calculating distance

That did it, thanks! I just kept trying to use pairs() and ipairs() that I never stopped to realize they didn't work in that scenario.
by HarshKnarsh
Tue Mar 15, 2022 6:50 am
Forum: Support and Development
Topic: Looping through a table and calculating distance
Replies: 4
Views: 2969

Looping through a table and calculating distance

I've been making a little program that allows the user to draw lines by clicking with the mouse with the ability to close them off with lctrl, making polygons. I do this by inserting the x and y position of the cursor into a table that I then pass into love.graphics.line(). I thought it would be coo...