how to make transparant object

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

hi, im making 2d level editor,now i wont to make transparant object but this code dont do nothing:
self_modulate.h = Color(1, 1, 1, 0.396078)
self_modulate.a = 0.396078

:bust_in_silhouette: Reply From: Gluon

try removing the self part just put this code in

modulate.a = 0.3

and you should see an effect.