im feeding a draw function by a another function that returns x & y as a string
Code: Select all
return ((camara.x + camara.secondaryx + camara.secondaryx * dt) * width / 100) .. ", " .. ((camara.y + camara.secondaryy + camara.secondary * dt) * height / 100)
but my question is if i can feed the draw function with an array of some sort
like:
...rectangle("fill", (x, y = calcpos(myinputx, myinputy)), 20, 20)...