-
-
Notifications
You must be signed in to change notification settings - Fork 291
Closed
Description
display.newSnapshot crashes on solar2d 3713.
Run the following code and build for android:
local snapshot = display.newSnapshot( 200, 200 )
math.randomseed( 0 )
-- Add 4 fish images to the screen
for i = 1,4 do
-- Create a fish
local fish = display.newImageRect( "new_icon.png", 40, 40 )
-- Move it to a random position relative to the snapshot's origin
fish:translate( math.random( -100, 100 ), math.random( -100, 100 ) )
-- Insert the fish into the snapshot
snapshot.group:insert( fish )
end
snapshot:translate( display.contentCenterX, display.contentCenterY )
Target platform and where build was made:
- Device: Any android device
Test project is attached to validate the crash.
Metadata
Metadata
Assignees
Labels
No labels