The release notes of daily build CoronaSDK 2012.771 says
Sprite: add trimming support to new Sprite API
How do i achieve trimming? The current frames tamplate is
local options =
{
-- array of tables representing each frame (required)
frames =
{
-- FRAME 1:
{
-- all params below are required for each frame
x = 2,
y = 70,
width = 50,
height = 50
},
-- FRAME 2:
{
x = 2,
y = 242,
width = 50,
height = 52
},
},
-- optional params; used for dynamic resolution support
sheetContentWidth = 1024,
sheetContentHeight = 1024
}
What do I need to add to the frames to achieve trimming? [import]uid: 69481 topic_id: 23685 reply_id: 323685[/import]