Removing a part of image on touch listener.

Hi,

I am trying to create a layer over an image and assign the event so that when user touch on the layer(particular area), that part will remove.

Is it possible in corona?

Any help will be appreciated.

Thanks,

If I understand correctly… there is a ‘piece’, some invisible shape sitting on top of an image and when it is touched the shape is removed from the image below (like a puzzle piece being removed?). If that is what you want then you could look at masks or possibly even blending modes. Let me know if my assumptions are correct and I may help further.

Hi Craig,

Your assumptions are correct. And I am doing the same thing as you suggested. But it’s looking odd.

As a user experience it’s not looking good.

Have you played where my water app, I want exactly the same effect. where the user touch to remove the layer for 

making the way to go water to the object.

Thanks,

If I understand correctly… there is a ‘piece’, some invisible shape sitting on top of an image and when it is touched the shape is removed from the image below (like a puzzle piece being removed?). If that is what you want then you could look at masks or possibly even blending modes. Let me know if my assumptions are correct and I may help further.

Hi Craig,

Your assumptions are correct. And I am doing the same thing as you suggested. But it’s looking odd.

As a user experience it’s not looking good.

Have you played where my water app, I want exactly the same effect. where the user touch to remove the layer for 

making the way to go water to the object.

Thanks,

Sorry I completely missed this and have had a break from development. Still a problem for you?

What I would do is setup all the touch zones that you want to “remove” from the lower layer. When one is touched, redraw a mask layer with that touched shape now included… get what I mean? 

top layer = touch objects

middle layer = mask

lower layer = image

top layer interactions will simply update the mask layer.

Sorry I completely missed this and have had a break from development. Still a problem for you?

What I would do is setup all the touch zones that you want to “remove” from the lower layer. When one is touched, redraw a mask layer with that touched shape now included… get what I mean? 

top layer = touch objects

middle layer = mask

lower layer = image

top layer interactions will simply update the mask layer.