When i rotate a group object that contains an image with a mask, the image is rotating, but not the mask. I’m confused…
This is my code:
local group = display.newGroup()
group.x = 100; group.y = 100
local mask = graphics.newMask("mask.png")
local image = display.newImage("image.png")
image:setMask(mask)
group:insert(image)
function onEnterFrame(event)
group:rotate(1)
end
Runtime:addEventListener( "enterFrame", onEnterFrame )
What wrong with my code?
Thanks already! [import]uid: 10863 topic_id: 19077 reply_id: 319077[/import]