bitmap copy of a group of objects

Hello! Is it possible to create a bitmap copy of a group of objects while keeping the original? (both objects must remain visible on the screen)

Is this what you’re looking for?

local group = display.newGroup()
local obj1 = display.newRect( group, 50, 50, 100, 150 )
local obj2 = display.newCircle( group, 100, 300, 50 )
local combined = display.capture(group)
	combined.x = display.contentCenterX
	combined.y = display.contentCenterY

More on that here.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.