New to godot is there a Sequence function to stack nodes

Godot Version

Godot 4.6

Question

If you share code, please wrap it inside three backticks or replace the code in the next block:

//Example not gdscript

Sequence seq = Sequence::Create(Pause(2), Play[“Animation1”],Pause(1.5f),DoSomeFunction(),Pause(0.5f),Play[“Animation2”])

seq.run()

Hi is there a sequence function or something similar in Godot. I have used them in other engines something like my example, it is a node based system so there should be way to push them on to a node stack then run each process in sequence

Many thanks in advance

I’m not sure if GDScript has this, but in my opinion you could just simply create a function that does all of those, then call said function. I don’t see the advantage of this.

Edit: The only thing that comes to mind are Tweens, those you can chain together, that might work for you, especially for animations!

1 Like