- Edited
SuperGibaLogan Why not just use a sprite?
SuperGibaLogan Why not just use a sprite?
xyz the node already has a sprite though
or do you mean another one?
SuperGibaLogan So you want do modulate another texture over this sprite's texture? Don't be cryptic. Explain it in detail so we don't need to squeeze information out of you, dragging the thread needlessly
xyz i want to modulate the texture as another texture, like it changes the image
SuperGibaLogan Can you show an example of this done in an image editing app?
xyz right here (it turns from the regular texture to another texture)
SuperGibaLogan Like a crossfade? Simplest to just use two sprites and animate their alphas.
xyz yeah kinda except the changed texture completely takes the former texture's spot
SuperGibaLogan yeah kinda except the changed texture completely takes the former texture's spot
That's the definition of crossfade
Put two sprites one over another and animate one's alpha form 0 to 1, and other's alpha form 1 to 0.
Alternatively you can do it with a shader. I think I even posted a shader like this long time ago. If you can find it...
xyz oh
btw i wont rlly do it with a shader, ill do the modulate thing
SuperGibaLogan Then it's a no brainer. Animate the alphas.
xyz o, ill use a shader then
SuperGibaLogan but im not rlly sure how to write a shader code
SuperGibaLogan Well, then maybe animate alphas.
xyz alright, i could prob use an animationplayer2d or another animation node
SuperGibaLogan Or a tween.
xyz could be
reading this thread gives me cancer.
feels like one is talking tomatoes and other tamatos.
@xyz said just have two sprites in the same place, or node or whatever, animate one sprite going to transparant, invisible and other going from transparant to full color.
whats so difficult here to understand? whats the problem?
kuligs2 ill try putting 2 animation players in the same place then
EDIT: realized the image is an animationplayer2d so i duplicated it