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]