A simple mask that inverts pixel colors.
That effect and is one of the ones shipped with Construct2.
It's called "inverse"
Yea that inverses the sprite not the same effect as a mask
You can use the effects on layers as well and it will invert everything on that layer. Sprites, tilesets, tiled bgs, 9patch, everything.
Still not the effect I need to achieve.
Do you have any examples of what you're trying to achieve? The only description you gave was "a simple mask that inverts colors" and the inverse effect does exactly that. I think you need to be more specific.
I think, people are trying to overthink this or being stupid.
I hope everyone one knows how masks work.
A mask applys a effect to everything below it, example will be noise mask or hue mask, I want one that inverts all the colors/Colours behind it.
Develop games in your browser. Powerful, performant & highly capable.
Although I don't know how intensively you'd want to use the feature it would be possible to create it with blendmodes (for the masking part) , and copies of the sprites for the inversion part..
With a bit of creative coding you could probably keep processing-power relatively low..
I'm using 4k Textures, having 3x Textures for one thing is a bit extreme.
You would only need to use the same texture 2x..
so the texture would only have to be loaded into memory once
(If you use the invert effect I talked about above)
By the way, what's the benefit of using 4k textures?
Absolutely no need to be rude. You could have left it at people trying to overthink it, or probably underthink. You were also pretty unclear. That said, I tried to figure it out anyway since it might be something people would like. I noticed there was no easy way to do it through layering and blend modes, but since the inverse effect already existed I just used it as a base.
The Effect
Demo
Example Capx
You may also want to reconsider using 4k textures. Check out this post from Ashley:
Remember Not to Waste Your Memory
Well. not my fault
Of course it's your fault that you were unclear with your request and vague with your intent. It's also your fault that you're using 4k textures. Very silly and an unnecessary waste of memory. I highly highly recommend reading Ashley's blog post on that.