I want to make the color of a shape a gradient, which dynamically changes when the shape moves around the screen. (Just like the gradient chatroom theme on Facebook messenger.)
I tried to achieve this by creating a layer with the gradient image, add the shape on another layer on top of that, set the effect of the shape to "Destination Out.", and enabling "Force Own Texture" on the upper layer. When I do this, it perfectly works as I want.
The problem is, my game has a lot of objects and I should be able to turn the gradients on and off (because I'm making it as an additional theme), so it's really inefficient to manually adjust the effects for every object.
(And also there was this weird bug where newly created instances from the same object appeared invisible, when the manually placed instances worked fine)
Well, simple solution, just make the effect of the layer to "Destination Out", right?
But when I did that, every object on that layer turned completely black.....any ideas?