Just going through and setting up a character for the first time in Godot4. Using AnimatedSprite2D but there is no option to check the "Playing" button in the editor. What am I missing? Are we supposed to use the autoload button and/or click play in the spritefames tab?
Godot 4 - AnimatedSprite2D node - (no checkbox for playing in the editor?)
Also - I set the project up using the "compatible" version I think it was - the one for older hardware that runs simple scenese the fastest.
- Edited
pixelmud Are we supposed to use the autoload button and/or click play in the spritefames tab?
If you just want to preview it in the editor then yes to the latter. If you want it to automatically start playing that animation in the game then I think it's the little icon with 'A' in it for autoplay yeah. Mind I haven't used AnimatedSprite2D for anything in godot 4, so I'm just guessing on the little icon with 'A' in it.
And I never could figure out why to make a sprite animation through a shader, when there is such a handy thing, like AnimatedTexture. Now I understand
Megalomaniak Thanks so much for the answer. Apparently the idea is to try to make it be more like the animation player, but I guess I don’t understand why not just get rid of the node then.
- Edited
pixelmud Could you explain a bit more about your response.
I'm afraid that there is no simple way to explain it here. I myself have recently started mastering shaders, and I can hardly explain in simple terms. In a nutshell, first you have to put all the sprites into an album (sprite-sheet). Assign that texture and the shader should do a sequential cyclic shift. Unfortunately, the main thing to learn shaders, "The Book of Shaders", is not finished and this chapter is only in raw form. But I'm a neophyte in this business, so maybe someone will suggest a better solution.
But it is relevant, since the animated texture will be removed.
This puzzled me as well, at first. It can be tad more annoying to see the animation play in the editor, but overall this change is for the best.
One thing that really frustrated me in v3 was that AnimatedSprite would constantly be changing it's frame in the editor. Then when you go to commit your code, the scene changed just by looking at it, but only the frame of the sprite... grr... this new behavior solves that