Make object/character opacity become 50 when it didnt talk

Hi, im new in Gdevelop
im using dialog tree to make a simple visual novel
i want to make the object/character that didnt talk become transparent (opacity 50), but when he talk the opacity become 100 again

is there any possible way to do that?

im using this to make the object opacity become 50, but i dont know how to make it become 100 again, or is there a way to uncalled a command in yarn?

I think you can call another command to restore the opacity, or just add an object variable called Clef_Opacity = 255 at the begin of the scene then when command “contrasc” is called change the variable ClefOpacity = 50 and when the dialog finishes or change to other NPCs talking change again ClefOpacity =255

1 Like