Just wondering if I am having a brain fade or if there is an issue with having a group within a group in a snapshot? I have made a very simple example to illustrate (came from a much more complex app). The small white box should move across the full width of the larger red box (the snapshot), but when it gets half way across it dissapears!
Code below and main.lua attached.
Any help would be much appreciated!
David
--1st group local mGroup = display.newGroup() -- 2nd group local tGroup = display.newGroup() -- snapshot local snap = display.newSnapshot(200, 200) snap.x = 160 snap.y = 100 --Snapshot Background Rect local bg = display.newRect(0,0,200,200) bg:setFillColor(1,0,0,0.5) snap.group:insert(bg) --Test Obj local testObj = display.newRect (120,0,10,10) mGroup:insert(testObj) tGroup:insert (mGroup) snap.group:insert(tGroup) snap:invalidate() local function transTest() mGroup.x = mGroup.x - 1 snap:invalidate() end timer.performWithDelay(20, transTest, 200)