I tried this with no luck:
local nanosvg = require"plugin.nanosvg"
local mC_kSvgPath = “snow-mountain.svg”
local tex = nanosvg.newTexture({
filename = mC_kSvgPath,
pixelWidth = 512,
height = 512,
width = 512,
})
if tex then
local options = {
width = 64,
height = 64,
numFrames = 64,
sheetContentWidth = 512,
sheetContentHeight = 512
}
local sequenceData =
{
name="walking",
start=1,
count=10,
time=100,
loopCount = 0,
loopDirection = "bounce"
}
local myImageSheet = graphics.newImageSheet(tex.filename, tex.baseDir, options)
local _oSpr = display.newSprite( myImageSheet, sequenceData )
_oSpr.x, _oSpr.y = 160,240
end
anyone knows the proper way for that? ![]()