Masking a movable sprite image

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? 

What kind of behavior are you looking to exhibit from this? I ask so that we might be able to provide solutions which would not include masking.

Erm… how should I explain it?

Something close would be like this topic in the forum

http://forums.coronalabs.com/topic/47378-black-screen-with-only-character/

But I am not sure if he is using a sprite. For me, I am using a sprite sheet for my character.

The main idea would be the "Pokemon cave " that he mentioned in his post. But what I want is only after a collision event happens. 

Thanks!

Whether the object being displayed by the “cutout” is a sprite or not shouldn’t matter. Are you sure your mask is constructed correctly? I’d suggest backing your testing up and try to ONLY display an image, mask that image, and then see if the cutout portion of the mask performs properly.

Alright. So here is what I tried.

First, when my character touches an object, I display a newImageRect that will cover the whole screen.(Yes, the whole screen is being covered)

Second, I added masking to the image and now the image does not covers the whole screen and is being displayed as a circle(Masking works with image, this is what I wanted, but I want it to be showing the character only)

Thanks for the help!

Does this affect or have they fixed it?
http://stackoverflow.com/questions/15367189/using-image-sheets-with-graphics-newmask-in-corona

I am using imagesheet also.

So now, I remove the black image and set mask to the character when it hits another object and the character became INVISIBLE??
An it only appears when I touches it?
What is wrong?? Why can’t it shows the character in a circle?

Bumps!
Anyone can help??? Or any suggestions??

What kind of behavior are you looking to exhibit from this? I ask so that we might be able to provide solutions which would not include masking.

Erm… how should I explain it?

Something close would be like this topic in the forum

http://forums.coronalabs.com/topic/47378-black-screen-with-only-character/

But I am not sure if he is using a sprite. For me, I am using a sprite sheet for my character.

The main idea would be the "Pokemon cave " that he mentioned in his post. But what I want is only after a collision event happens. 

Thanks!

Whether the object being displayed by the “cutout” is a sprite or not shouldn’t matter. Are you sure your mask is constructed correctly? I’d suggest backing your testing up and try to ONLY display an image, mask that image, and then see if the cutout portion of the mask performs properly.

Alright. So here is what I tried.

First, when my character touches an object, I display a newImageRect that will cover the whole screen.(Yes, the whole screen is being covered)

Second, I added masking to the image and now the image does not covers the whole screen and is being displayed as a circle(Masking works with image, this is what I wanted, but I want it to be showing the character only)

Thanks for the help!

Does this affect or have they fixed it?
http://stackoverflow.com/questions/15367189/using-image-sheets-with-graphics-newmask-in-corona

I am using imagesheet also.

So now, I remove the black image and set mask to the character when it hits another object and the character became INVISIBLE??
An it only appears when I touches it?
What is wrong?? Why can’t it shows the character in a circle?

Bumps!
Anyone can help??? Or any suggestions??