[lua]local t1 = {
{ x=310, y=178 },
{ x=340, y=220 },
{ x=340, y=270 },
{ x=305, y=312 },
{ x=258, y=328 },
{ x=203, y=315 },
{ x=165, y=280 },
{ x=165, y=228 },
{ x=185, y=181 },
{ x=249, y=160 }
}[/lua]
Here is a table I set up with coordinates and was wondering how to have numbers 1-10 connected to it using [lua]display.newText[/lua]
Should I set up a for loop like this
[lua]for i = 1, 10 do
number = display.newText(0, 0, 0, native.systemFontBold, 40)
number.x = t1[i].x; number.y = t1[i].y
end[/lua]
I keep getting errors and I don’t know why!
Thanks for any help!
[import]uid: 51459 topic_id: 16220 reply_id: 316220[/import]