How can I set animation in visual script editor?

I can set/change animation by following code snippet:

$AnimatedSprite.animation = "walk"

But I can't input the animation's name in visual script editor. After I use the 'Set Animation' node, I can only select a class(although it is a string field) instead entering the animation name. Here's the whole operation (

"video").

Is that a bug ?

Hi, your post was stuck in the moderation queue. Please confirm you account via the email we sent. Thanks.

@cybereality said: Hi, your post was stuck in the moderation queue. Please confirm you account via the email we sent. Thanks.

Yeah, that's another question.

I had send this issue to administrator, the forum system said it had send me the notification mail, but I don't get any mails from it.

Can you kindly help me to inform the administrator this issue, thanks.

Make sure to check your spam filter/folder and also double check that you registered with the correct email.

(I replied to the email. Sorry about the delay in replying :sweat_smile: )

Thanks for your reply, I had confirmed that the confirm mail from the forum was identified as a spam mail. :(Although I had tell the GMail that don't treat the forum's mail as the spam later, but it is somewhat unexpected.

And, I replied the mail, too. :smile:

@naive231 said: How can I set animation in visual script editor?

I can set/change animation by following code snippet:

$AnimatedSprite.animation = "walk"

But I can't input the animation's name in visual script editor. After I use the 'Set Animation' node, I can only select a class(although it is a string field) instead entering the animation name. Here's the whole operation (

"video").

Is that a bug ?

I had found the solution myself. To change animation of the $AnimatedSprite, we actually use the AnimatedSprite.play() static function and give the animation name as the argument. :o

But I don't get it. Why visual script and gdscript itself use different interfaces to do the same thing? Aren't they using the same code base?

2 years later