Here’s a snippet:
display.newRect( 300, 300, 200, 200 ).fill = {0,0,1} local parent = display.newGroup() local laser = display.newSnapshot( parent, 500, 500 ) timer.performWithDelay( 1000, function() display.newCircle( laser.group, 0, 0, 50 ).fill = {0,0,0} laser.x, laser.y = display.contentCenterX, display.contentCenterY laser:invalidate() transition.to( laser, { delay=500, time=1000, x=100 } ) end, 1 )
The intention is for a blue square to get rendered to a background group, then a black circle to get rendered to a snapshot and for the snapshot to get moved across the screen.
For some reason, the blue square, which is not in the snapshot, is getting copied (and scaled!) to the snapshot and moves with it.
I clearly do not understand snapshots. Could someone please explain what is going on and how to stop it. I would like to use the snapshot to apply effects (blurs, etc) to the circle and not involve the blue square at all, except in the background.