local t = {}
t[1] = 1
t[2] = 3
t[3] = 5
t[4] = 4
t[5] = 7
t[6] = 6
t[7] = 2
t[8] = 4
t[9] = 14
t[10] = 11
t[11] = 4
t[12] = 8
t[13] = 6
t[14] = 5
t[15] = 11
t[16] = 8
t[17] = 2
t[18] = 11
for l = 1,#t,1 do
if (l \<= 9) then
local txt = display.newText(l, 250, 93+(l-1)\*38,nil,35)
txt.rotation = 90
txt.xScale = .5
txt.yScale = .5
txt.x =270
txt:setTextColor(50, 50, 50)
local txt = display.newText(t[l], 200, 93+(l-1)\*38,nil,35)
txt.rotation = 90
txt.xScale = .5
txt.yScale = .5
txt.x = 220
txt:setTextColor(50, 50, 50)
end
if (l \>= 10) then
local txt = display.newText(l, 250, 93+(l-10)\*38,nil,35)
txt.rotation = 90
txt.xScale = .5
txt.yScale = .5
txt.x =150
txt:setTextColor(50, 50, 50)
local txt = display.newText(t[l], 200, 93+(l-10)\*38,nil,35)
txt.rotation = 90
txt.xScale = .5
txt.yScale = .5
txt.x = 100
txt:setTextColor(50, 50, 50)
end
end
when i try to do localGroup:insert(txt)
director doesn’t work. When i leave it without the localGroup:insert(txt) the numbers go to the next scene. Has anyone had the same problem?
[import]uid: 24708 topic_id: 19805 reply_id: 319805[/import]