#AnimatedSprite2D

5 messages · Page 1 of 1 (latest)

warm sedge
#

Basically: So I want to start a jump animation then transition into a looping air animation.

supple plume
#

I think ideally you would set up a State Machine to handle this sort of stuff..

But, for a quick and rough test, you'd likely have to set up a check for a signal from the jump animation (the AnimatedSprite2D should signal "finished" or something automatically after playing through the animation) at which point you would then run something like anim.play("falling") or something.

This tutorial can help a bit, though it doesn't look like he covers signals, only taking parameters to evaluate what animation to play: https://youtu.be/sVJEaYNOUNw?si=vAPUW6l0TeEsuhem

Join my email list: https://carettagames.com/maillist
Get my Godot 4 course: https://carettagames.com/g2dcourse

Knight assets: https://aamatniekss.itch.io/fantasy-knight-free-pixelart-animated-character

This is the second part of the Godot 4 2D platformer tutorial series. In this episode we will create animations for the player and switch betw...

▶ Play video
warm sedge
#

I'm guessing it checks every tick and plays the animation over and over again so it looks like its not "playing the animation"