You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is a bug or is not yet implemented, but adding two images to a container displays them as if default blendmode was set.
var image = this.add.image(100, 100, 'disk');
var image2 = this.add.image(150, 150, 'disk');
image2.blendMode = 2;
var container = this.add.container(0, 0, [ image, image2 ]); // works fine without this line
The text was updated successfully, but these errors were encountered:
Yes, it's not implemented yet. As we can't multiply blend modes I'm guessing that whatever is set as the blend mode at the very top of the container chain overrides everything else below it.
Thank you for submitting this feature request. We have implemented this and the feature has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
To clarify: If a Container has a blend mode set, all children will use it. If it doesn't, and a child has a blend mode set, that will be used. Parent overrides child.
I don't know if this is a bug or is not yet implemented, but adding two images to a container displays them as if default blendmode was set.
var image = this.add.image(100, 100, 'disk');
var image2 = this.add.image(150, 150, 'disk');
image2.blendMode = 2;
var container = this.add.container(0, 0, [ image, image2 ]); // works fine without this line
The text was updated successfully, but these errors were encountered: