"Paste" a sprite image onto a "canvas" image

In my 2D pixel art game, when you kill the other characters, the blood splats come out as sprites and I want to “paste” them onto a background layer so they build up over time. Essentially painting onto a canvas using a sprite image as a brush.

I think in both Godot and Unity I had to manually do this by accessing the sprite’s texture and getting the right pixels for that sprite frame and plotting them to an Image object which had a feature to “Update” which would push that data to the GPU and replace an existing texture, whenever I want to update it. For my game there’s no scrolling, so I just need one giant transparent image that overlays the whole screen and will be the “canvas” that the blood splats are pasted onto.

Possibly I didn’t look hard enough but I was having trouble finding something like this in the documentation.

Could someone point me in the right direction?

Sound like you could solve this by drawing the blood sprites using a different predicate onto a render target which you never clear and then draw the render target to a quad.

1 Like

Ok I will look into that, thank you :slight_smile: