Code: Select all
for i=1, #bloops do -- Outer loop for iteration
local ev = bloops[i]
for j = 1, 4 do
ev.velocity = ev.velocity * ev.decel
ev.y1 = ev.y1 + ev.velocity*dt
ev.x2 = ev.x2 + ev.velocity*dt
ev.x3 = ev.x3 - ev.velocity*dt
ev.y4 = ev.y4 - ev.velocity*dt
end
end
If not, easy no answer to stop me searching and change the "object"'s construction to accomodate.
Cheers!