hi
i am trying to move an object around the screen
i have stored the screen x and y coordinates in a 2 arrays
people[i].xposition and people[i].yposition
how can i change the following code to move the object around the screen
local point = display.newRect( 0, 0, 20, 20 )
local listener1 = function( obj )
print( "Transition 1 completed on object: " … tostring( obj ) )
end
for i=1,550
do
transition.to( point, { time=500, x=people[i].xposition, y=people[i].yposition, onComplete=listener1 } )
end