I recently decided to try out the auto-trace functionality on Corona’s physics library and I have a question. I used a transparent PNG image, and tried to have it auto-traced, but this message was printed into the logs:
[lua] ERROR: /Users/Alex/Desktop/Corona Physics Library Tests/level1.lua:69: physics.addBody() : invalid “outline” [/lua]
It said something about non-transparent alpha values, can someone explain to me the qualifications needed for an image, for the outline to come out correctly?
Edit: I don’t think there is error in my code:
[lua] local imageFile = “stadium.png”
local imageOutline = graphics.newOutline(2, imageFile)
local image = display.newImageRect(imageFile, 620, 369)
image.x, image.y = 300, -240
image.rotation = 90
physics.addBody(image, “dynamic”, {outline = imageOutline, bounce=0.5, friction=0.1}) [/lua]