Is it possible to mask a character that is made up of sprite and is movable?
What am I suppose to do to make it work? I only want the mask to appear after a collision event(The character touches another object) and remove the mask after a short while.
Im now using
local mask = graphics.newMask("circularmask.png") character:setMask(mask) --Then removing after a while character:setMask(nil) mask = nil
But it does not mask as what I wanted. I placed a black image when the collision happens and I cannot see my character.
Any ideas?