It looks like you're new here. If you want to get involved, click one of these buttons!
a={}
dot1tex = Texture.new("dot-1.png")
group1 = Sprite.new()
group1:addChild(Bitmap.new(group1tex))
for i=0,3 do
for j=0,3 do
local dot = Bitmap.new(dot1tex)
dot:setPosition(i * 45 + 10, j * 45 + 60)
a[i]=group1:addChild(dot)
end
end
group1:setPosition(10, 10)
for i=0,3 do
stage:addChild(a[i]) -- line 30
end |
Comments
Remember Lua table indexing starts at 1 and not at 0
Cheers
evs