Objeto1=display.newRect (300,0,50,50)
Objeto1:setFillColor (1,0,0)
Objeto2=display.newRect (300,100,50,50)
Objeto2:setFillColor (0,1,0)
Objeto3=display.newRect (300,200,50,50)
Objeto3:setFillColor (1,0,1)
Objeto4=display.newRect (300,300,50,50)
Objeto4:setFillColor (0,1,1)
Objeto5=display.newRect (300,400,50,50)
Objeto5:setFillColor (1,0,0)
Objetos={Objeto1.x,Objeto2.x,Objeto3.x,Objeto4.x,Objeto5.x}
Objetos2={Objeto1.y,Objeto2.y,Objeto3.y,Objeto4.y,Objeto5.y}
How do I update some value in the table when an object changes its position?
And the other question would be: How do I refresh the position of the object when I change a value in the table?