Tapping through a transparent layer
I want to be able to click the visible part of an element that is behind another semi-transparent element.
For example in this screenshot, the girl is behind a wave. I can only click on the very top of her exposed head, whereas I expect to be able to click her entire visible body:
I know is is per-pixel tap test, but still...
If there's a way around that - please advise
Thanks,
Ranco
Answer
The best way to handle this is to add a transparent element in front of the image of the girl and add your action set to that element. This is not a bug because transparent elements can have action sets and the transparent part of an element needs to be clickable.
By "Transparent" you mean alpha-only image, or a hidden element?
Why do you need to allow is a transparent element action sets at all?
Maybe there should be an "allows actions" parameter to an element...
a transparent element is for example a png that doesn't have any colors on it, not even the white background.
You can import a png in builder and set the Opacity to 0% and there you have a transparent element.
I think it would be nice to be able to do both, so perhaps a global setting for whether you need to be able to click transparent pixels or not, and then being able to change it on specific objects? That way, we could have a click-through set for the entire app, and have 3 images with clickable transparent pixels.
It would be very useful in many ways. You could make all images 1024*768 px in a stack of layers in Photoshop, and then have all objects place excactly where you want them from the start, when you import them to the stage.
If it's visible, I want to be able to select it, if that's more clear :)
Customer support service by UserEcho
The best way to handle this is to add a transparent element in front of the image of the girl and add your action set to that element. This is not a bug because transparent elements can have action sets and the transparent part of an element needs to be clickable.