Well I’ve stuck with this problem for 2 hours and I’ll depend on the community now
(it’s not that I give up, but there’s still many things to code :p)
It’s an alchemist character, with the bottle she holds has [water/fluid/what u call it] that changes color between the selected 3 (there are 7 total). the [Water] is a .png with PURE WHITE/FFFFFF/255,255,255 color.
then… I play it.
seems fine, but wait.
yellow = white?
knowing this bug, I try to go to inspector and change it manually.
when I change to RED it goes VIOLET
when I change to GREEN it goes CYAN
FYI: only happens when its playing, when I stop its just normal.
So it must be something in Update(), but I’ve checked everywhere and the only one that change the color is its parent hierarchy (the bottle)
void Start()
{
pot = this.transform.Find("pot").GetComponent<SpriteRenderer>();
ChangeColor();
}
public void ChangeColor()
{
pot.color = this.transform.root.GetComponent<Alchemist_Script>().color;
}
and there’s nothing wrong in Alchemist_Script. it doesn’t even have Update()
thanks. and sorry if this question is a bit stupid.