hi everyone,
I would like to move a table from the bottom to the top
I read a lot of the above topic without understanding the solution
where can I find a good example to do this?
I can move a character on my screen and now I love the grid moves from bottom to top to force the character to go up.
local gridGame = {} local row = 9 local cell = 14 local rectx = 30 local recty = 30 local gridscaley = 0.35 local gridscalex = 0.35 local space = 2 local spaceleft =40 local spacetop = 20 local divx=widthscreen/(row\*2) local divy=heightscreen/(cell\*2) for i = 1, cell do gridGame[i] = {}; for k = 1, row do gridGame[i][k] = display.newCircle(100,100,100) gridGame[i][k].yScale=0.35 gridGame[i][k].xScale=0.35 gridGame[i][k].alpha = 1 gridGame[i][k].x = (k - 1) \* (rectx + space) + spaceleft gridGame[i][k].y = (i - 1) \* (recty + space) + spacetop end end topboundary = -300 local function scroll() gridGame:scrollTo(topboundary) end scroll()