I am trying the concept of relational positioning (creating objects based on the location of other objects) and I am having a bit of a problem. I have a text objects inside of circle, and when I try to set its x and y value:
local upgradeCapEfi = display.newCircle(left + 20, bottom, 50) upgradeCapEfi.fill = \_PURPLE\_ local upgradeText = display.newText("Upgrade: \nLevel " .. moneyLVL, 0, 0, 100, 0, native.systemFont, 10) upgradeText.x, upgradeText.y = upgradeCapEfi.x + 20, upgradeCapEfi - 20
I get an error saying “Attempt to perform arithmetic on local ‘upgradeCapEfi’ (a table value)” Why is the circle’s coordinates a table value?