How to make an animation play for a Texture Button?

Godot Version

4.3

Question

I want to make a Texture Button that does an animation when pressed. The animation is done with an AnimatedTexture that uses a bunch of AtlasTextures. However, when the button gets pressed, nothing happens. All the other code works, but the animation doesn’t. Does the animation require some code to work?

AnimatedTexture is deprecated since 4.3.

Deprecated: This class does not work properly in current versions and may be removed in the future. There is currently no equivalent workaround.

It also says this:

Note: AnimatedTexture doesn’t support using AtlasTextures. Each frame needs to be a separate Texture2D.

It’s better to have a normal Button and an AnimatedSprite2D that plays the animation when the Button is pressed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.