How to animate a line 2D node's texture?

Godot Version

4.5

Question

Hey! I’ve been trying to make a laser projectile for my game but I’ve been having trouble making have an animated sprite on it. I’ve tried to animate an atlas texture through an animation player, and have used an animated texture on the line node, but one would not animate, and the other didn’t even show. I’m thinking about making a shader to animate it, but I don’t know how to start on that kind of shaders. Is there something I’m missing?

You should not use AnimatedTexture as it is deprecated. For the AnimationPlayer, did you call the play function to start playing the animation?

I had the animation on the “autoplay on load” setting, is that why it didn’t work?

Yeah welp this apparently either just isn’t possible or is hidden somewhere extremely obscure. I’ve tried about everything I can think of and nothing seems to work. Good news though is that I can replicate the animations using multiple line 2d nodes and an animation player, so I now have a very janky solution.