Erasing part of a sprite
Hi everyone, please share an example where you can erase part of a sprite. For example there is an object, there is dirt on it and the dirt can be wiped off.
You can found eraser in sprite editor
Maybe different animation frames? One with dirt and one without?
Develop games in your browser. Powerful, performant & highly capable.
I meant to remove in the game itself)) Napirmer task to wash the car and the player removes the dirt on the car with a rag.
No, the task is to gradually erase the sprite.
> Maybe different animation frames? One with dirt and one without? No, the task is to gradually erase the sprite.
> Maybe different animation frames? One with dirt and one without?
It might be possible using the Drawing Canvas:
construct.net/en/make-games/manuals/construct-3/plugin-reference/drawing-canvas
Looks like you can use "paste object" to paste the currently picked sprite to the canvas.
Then I guess you can erase over it using by drawing a small circle with 0% opacity at the mouse point.
gd80 See "Blend Modes" and "Mask Effect Puzzle" examples from the Construct 3 Start Page "Browse Examples" link, you can probably achieve what you're looking for using the same technique.