Lighters pause in midpoints

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.
HedgeHog builder
Prole
Posts: 15
Joined: Sat Aug 19, 2017 9:13 am

Re: Lighters pause in midpoints

Post by HedgeHog builder »

Will this work?

distances = {}

for key,value in ipairs(beacons) do
for i,unit in ipairs(spawned units)
local distance = math.sqrt((unit.x-k.x)^2 + (unit.y-k.y)^2
table.insert(distances,distance)
end
table.sort(distances)

Then pick the last one?
Post Reply

Who is online

Users browsing this forum: No registered users and 83 guests