0
我有一组图像,我想添加到我的滚动视图使用for循环。我的图像集按此顺序命名为Route01.png,Route02.png ...。我如何编码我的for循环,以便我可以顺序加载这些图像。我的问题主要是关于如何编码第2行display.newImage()
,我知道我做得不对。提前致谢。使用for循环显示/加载一系列图像
for i=1, 50 do
image[i] = display.newImage("images/route/Route[i].png")
image[i].x = display.contentCenterX
image[i].y = spacing
scrollView:insert(image[i])
end