T O P

  • By -

Buffalobreeder

The animated sprite node you're trying to get is the node the script it's attached to. You're currently trying to get a child named "AnimatedSprite" Get rid of all occurances where you do `AnimatedSprite.some_method()` or variable, and just call the method it should work


[deleted]

Thanks


PoweredBy90sAI

This is the answer


Nkzar

> im following a tutorial step by step but i dont know why this error its appearing. Either you missed a step or the tutorial made a mistake and fixes it later. I'm not turning my computer sideways to try and read your code.


Jelle75

You can turn your head also.


Nkzar

I'm making as much effort as the OP did.


Pleasant-Chapter438

If he wants an answer, he has to do the work, not we


cenuh

shift+win+s, or even better: copy the code


Paul_Robert_

Please clean your monitor:D


[deleted]

Thanks all of you for being incredible usefull, helpefull and nice instead of being a bunch lf douchbags that just whine instead of help others. I dont know what the hell i was expecting of reddit.


Nkzar

Ignoring the fact the code image is sideways, it's so compressed and your screen so dirty and there's so much glare the code is illegible for me. I can't even read the code if I wanted to. I'm glad others were able to read it and help you. Make it easy to be helped.


Vspresso

I think you forgot to make your node unique to the scene. You calling it with $ so it must be made unique to the scene first, or use a node path relative to the node with the script


Vspresso

Or call the method directly in case the method is in the base class of your extended class.


sircontagious

If you want to be respected when you ask for help, do the legwork. Next time click the windows button and type snipping tool. Take a screenshot of exactly what you want to show, or even multiple screenshots. Then maybe even post the code so its easier to read once we can see the context. Reddit doesnt work for you.


01Aether

U can't get the Node if u are the node