I have an image. And I want that image to move from point A to point B.
I do that with transition.to and works perfect.
But now I have 5 images inside of a table and I use a “for” loop “do” to create the images
The images are there, but they are not moving, I’m doing something wrong.
This is the code
local quarterNoteTable = {} local indexNote = 0 for row = 1, 5 do --for column = 1, 2 do indexNote = indexNote + 1 local quarterNoteUp = display.newImageRect("images/quarterNoteUp.png", 38, 101) quarterNoteUp.x = (row \* 200) - 20 quarterNoteUp.y = 206 --whiteKey.y = column \* 104 quarterNoteTable[indexNote] = quarterNoteUp group:insert ( quarterNoteTable[indexNote] ) --end transition.to(quarterNoteUp[indexNote], {time=1000, x=(row \* 100) - 20, y=206}) end
Thanks for your help
Victor