- Edited
Hi,
basically i have for example this array:
["name", 0, "(0.4706, 0.3804, 0.1098, 1)", "(0.8745, 0.7137, 0.5725, 1)", "(0.1373, 0.3765, 0.4118, 1)", "(0.4784, 0.349, 0.1961, 1)"]
so array[2] give me (0.4706, 0.3804, 0.1098, 1)
then i instantiate my player node and want to change the color of the animatedsprite2D
a_player = boy_player.instantiate()
a_player.get_node("b/anim").modulate(Color(array[2]))
don't work at all
a_player.get_node("b/anim").set_modulate(Color(array[2]))
return the default color so it's just black
a_player.get_node("b/anim").set_modulate(Color.from_string(array[2],Color.AQUA))
return the set default color so aqua but not my color
could you tell me why it doesn't show the color from the array?
thx