how to change the opacity of a sprite?

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

how to change the opacity of a sprite ? please someone help me!!

:bust_in_silhouette: Reply From: kidscancode

Look at the “Modulate” property in the Inspector.

If you want to do it in code:

modulate.a = 0.5
:bust_in_silhouette: Reply From: OnaniMouse

see this https://www.youtube.com/watch?v=LAIaqZl_7c0

:bust_in_silhouette: Reply From: sinistro25

If you use modulate it will change the opacity and color of the node and all its children. If you want to change only the modulation of the node you can use selfmodulate. To change opacity you want to modify the alpha channel.

And how do you do this?

fccoelho | 2023-02-28 16:30