xyz tried my best to explain
this only applies to the code, not the actual settings of the node since i already did that
[GODOT 4.1] "CompressedTexture2D" version for a color code?
- Edited
SuperGibaLogan I meant post the result you want to achieve and the ingredients you have to start with.
xyz the result i want is to just give it any kind of image texture that relates
xyz btw im not rlly sure about the ingredients...
- Edited
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)
- Edited
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
- Edited
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
- Edited
SuperGibaLogan Well, then maybe animate alphas.
xyz alright, i could prob use an animationplayer2d or another animation node
SuperGibaLogan Or a tween.