Change or show other sprite dynamically

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

Hi,

I want to change or show other sprite dynamically, i try erase the first sprite to show sprite behind but it slow everything down, example what i want to make:
Example what i want to make

Exists any method to make that with Godot ?
If yes, how ?
Thanks in advance!

:bust_in_silhouette: Reply From: Inces

You need to learn shaders for that. Rectangle can have shader, that will change the colour of everything behind it. It is one of the easiest shaders to make, and still there is a lot to learn for this.