+1 vote

Hi, I was exploring Godot recently and I'm trying to create a very simple Animation State Machine for a 2D sprite character. I'm currently having trouble to implement transitions using Advance Condition. Can anyone shed some light here on the Advance Condition?

in Engine by (13 points)

1 Answer

–4 votes

Advance condition? If i dont misunderstood you
- you need to play different animations by conditions.
So... You need animationplayer or animationsprite
+ script
Here in updateable function you need to check
Conditions like below
//
func _process(delta):
If condition 1:
if currentanimation != 'animation1':
Animationthing.play('animation1')
If condition 2 && condition 3:
if currentanimation != 'animation2':
Animationthing.play('animation2')
//

Condition that current animation is not the
animation you want to play is for dont restarting
Animation every tic
GL

by (13 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.