#my nodepaths stopped working suddenly

1 messages · Page 1 of 1 (latest)

minor meadow
#

Sorry, you provided too little information for anyone to help you. Could you post a screenshot of your scene nodes setup + the code where you reference those nodes that's not working?

plucky aurora
#

sure

minor meadow
#

Is this the code assigned to Node2D? Is it the only node that has this script? Could you show an error message that you get?

plucky aurora
#

my dumbass said "its a gamejam project i dont need version control"

plucky aurora
#

and yes its the only one with this script

minor meadow
#

I'd suspect you've added the script to another node by mistake, or maybe you are removing the node somewhere in the code? When godot throws an error, go to editor's window and check Remote tree

#

see if the node is still there

#

you could also do print(name) right before calling $AnimatedSprite2D.play()

#

to see whether it's truly the only node with the script reaching this code path

plucky aurora
#

when i go to remote i get this

minor meadow
#

nice, glad I could help

plucky aurora
#

im not sure how to fix this though

minor meadow
#

Either remove the Player node, detach the script from Player node, or add AnimatedSprite2D as it's child

plucky aurora
#

well the thing is i dont know where the player node is

plucky aurora
#

please sm1 help me im on gamejam time

thorny siren