Hy all, i'm develope 1 little game both for android and iOS in Corona.
I need to set a mask to an image when users touch the group. Here is my code:
local function eat( event )
if event.phase == "began" the
local mask = graphics.newMask( "file/mask.png" )
local playSound = audio.play( biteSound )
onDishGroup:setMask( mask )
onDishGroup.maskX= event.x
onDishGroup.maskY = event.y
return true
end
The question is, how can i add multiple mask to that group ? Its work well, but this will set only 1 mask at a time, the old will remove or it will be just moving to the new x y.