How do I animate a 2D mask hiding a fuse burning?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rtideas

Converting an old training game I made in Flash to Godot. It uses a lit fuse as a timer that burns away over time.

I want to animate a fuse burning down as a timer.

How would I create a box mask that slowly shrinks hiding the fuse image? I’d there such masking Godot?

:bust_in_silhouette: Reply From: exuin

For this, I would use a shader. Use a gradient image in the shader to mask the wick. Like in this video.