#Frist 2d game Doc Help

1 messages · Page 1 of 1 (latest)

fair pulsar
#

It seems like your sprite that should animate isn't found. Can you show how you are referencing AnimatedSprite2D, as well as a picture of your node tree in the editor?

#

@radiant dagger

radiant dagger
radiant dagger
#

@fair pulsar im not 100% if this is what ur lookin for if not lmk

fair pulsar
radiant dagger
fair pulsar
fair pulsar
#

It looks like your script is attached to Player, so it should be get_node("Area2D/AnimatedSprite2D")

#

It's a relative path

radiant dagger
#

gotcha i thought your were sayin either or lol

fair pulsar
#

Ah no worries haha

radiant dagger
#

: /

#

I think im doin it wrong still

#

does it also need node2d since thats what player is

fair pulsar
# radiant dagger

You need to store it in a variable, and then reference that variable when you want to play the animation