Ok so here is my problem. I have a block of code that is supposed to loop through a table and then display each item as a new text object on the screen, then is supposed to put each object into a group.
Currently if I dont try to add each item into a group, my code displays each object but it pretty much lays each object on top of the other.
How do I loop through it and add the new display object under the last display object and how do I add each object to a group so I can format the positioning of the group as a whole at a later time?
local myTable = { "one", "two", "three", "cat" } local group = display.newGroup() local function showStuff() for i = 1, 4 do local thing = display.newText( myTable[i], 0, 0 ) i = i + 1 group:insert( thing ) end end