PNG transparency overlap causes touch event on both object to fire

I have two images that I am going to place in the lower corner of the device screen. The red image is for firing and the blue is for activating shields.

Both Images have transparency and because they are located next to each other the transparencies overlap. The problem is adding touch events to both and then just touching say the red area fires both touch events but if they are far away from each other clicking in a transparent area the touch event doesn't fire on the single image as expected.

I need to find a solution because I would like to leave the controls laid out as I have them.

Download sample code and images I am using from here http://mattwallace.s3.amazonaws.com/touch_example.zip

just put "return true" at the end of your touch functions and they will not fire together then

and why wont you just get rid of transparency fields?

what do you mean "get rid of transparency fields" ?

I will give the return true change a try. Thanks!

returning true in each handler didn't seem to help.

in your gpx program remove the transparency
in PS go to image and trim
dont know gimp way but its there

views:1494 update:2012/1/1 13:29:50
corona forums © 2003-2011