0 votes

Here is the sample codes from official documentation(tutorial):
Then I want to change the animation of the AnimatedSprite through visual scripts:
Change animation
But when I click the value of the Set Animation node, it pops up the dialog:
I am expecting to enter the animation's name like "walk" or "up", but I can't.
I don't know why it pops this dialog to me? I can't select my animation with that.
Does anyone know what is going on?

in Engine by (14 points)

1 Answer

0 votes

I'm by no means an expert when it comes to VisualScript┬╣, but: I think you're supposed to add a variable (click the plus-sign next to "Variables" in the bottom left of the view), set that variables type and value (righ-click the entry and choose "Edit Member"), drag the variable into the view to create a new block for it and then connect that block to the blue dot in the bottom right of the "Set animation"-block.

┬╣ In it's current form I consider VisualScripting a gimmick. Its not well documented, far from intuitive and I wouldn't know who to ask if I got stuck with it. I'd argue that it's still easier to learn GDscript, which - unlike VisualScript - will prepare you for working with other high level programming languages like Python as well.

by (10,331 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 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 webmaster@godotengine.org with your username.