Hello
I just need a small help. Does anyone know how to put images in the back when this happen:
local square = display.newRect(0,0,50,50)
square.x = 160
square.y = 240
localGroup:insert(square)
local function moveit()
local square2 = display.newRect(0,0,50,50)
square2.x = 160
square2.y = 240
localGroup:insert(square2)
to.transition(square2, {time = 2000, x = -500})
end
timer.performWithDelay(1000, moveit, 0)
How would the square2 move under square. Placing the moveit function above the square image does not help what else is there to do?
What I’m trying to do is have the square2 move under square and not have square2 move on top of square. [import]uid: 17058 topic_id: 33932 reply_id: 333932[/import]