Need help understanding multiple alpha effects

I can set the alpha channel for images to 30% directly via:

image.alpha = 0.3

I can also use transitions to adjust the alpha over time:

transition.to(image, {alpha = 0.3, time = 1000})

I can add multiple images to a group, and set the alpha for the entire group at once via:

g:insert(image1)
g:insert(image2)
g.alpha = 0.3

It even works to use transitions on a group as in:

transition.to(g, {alpha = 0.3, time = 1000})

Lastly, I can apply a mask to an image or group.

image:setMask(mask)

Unfortunately, these various methods don’t play well together.

If I use alpha effects and a mask, the alpha effects only show up with alpha = 0 or alpha = 1. (With a transition, the image is fully opaque until alpha = 0, at which time it disappears.)

If I apply alpha to both the image and the group, the image seems to disappear entirely.

Can someone explain how these different methods can be made to interact better? I really want to fade in a piece of an image - masking and alpha transitions seem like they should allow that.

–Simon Strange [import]uid: 65996 topic_id: 11479 reply_id: 311479[/import]

I’m noticing that although there are lots of posts on these forums there are very few vies - and even fewer replies.

I found another odd case:

I have an image I created, and then manually set it to be non-visible with

image.isVisible = false

Later I make the group which includes “image” non-visible via the same method:

group.isVisible = false

This makes everything disappear, as I expected. But tap events no longer register for “image” Why is that? I feel like groups are doing quite a bit more than simply giving my images a draw order…

–Simon [import]uid: 65996 topic_id: 11479 reply_id: 42596[/import]

Can we please get an answer to this question.  I am seeing the same kind of strangeness.

http://docs.coronalabs.com/api/type/DisplayObject/isHitTestable.html

Can we please get an answer to this question.  I am seeing the same kind of strangeness.

http://docs.coronalabs.com/api/type/DisplayObject/isHitTestable.html