Help with sprite2 and animatedsprite2d

Godot Version

godot_v4.2.2

Question

I have a sprite 2d cannon, and the animated sprite2d cannon that looks like it is shooting but how do i make that every 3 seconds sprite2d changes to animatedsprite2d and play the animation, and gets back to sprite2 and loops continiously,like is that possible in godot or i am asking for to much.

It is possible but first tell me is there any particular reason for using sprite and animated sprite separately?

I mean no,i was just trying to figure on my own how to do it and i though it will be the easiest way to do it

You can use the function “replace_by”, you can check more information in the docs (just hold CTRL and click on the function in that code editor)

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