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?