Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am developing an app where in I have to smudge and erase a portion of the image which is loaded on stage.

The logic I am using is adding two Images on stage one above the other.

I am able to smudge the image which is in front.

Now I want to erase the part of front Image which is smudged three times and make the Background image visible through that part.

I have made the smudge effect but I am not able to erase the smudged portion from that Image.

share|improve this question
2  
What do you mean by "erase"? Do you mean setting the alpha channel to 0? Are you doing layer composition by yourself, or by standard Bitmaps ? – Ivan Kuckir Jan 25 at 11:24
I have two images one over the other. Both are JPEG. During Run time I convert the image on top to bitmap and then I want to apply the effect on it. And by ERASE I mean that when I move my brush on the image in first two strokes the images should smudge but on third stroke it should get erased and the Image which is below the bitmap should appear. – amit.r007 Jan 27 at 8:40
Have you tried keeping track of each pixel you touch/smudge and on the third hit you set the Alpha to 0? – Gone3d Jan 30 at 21:02

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.