Topic was automatically imported from the old Question2Answer platform.
Asked By
ElanX
Hello, I want to change a value in a script called “fireball”.
How can i change this value from my player script? I tried it with get_node(), but every time I got the error: “Node not found: res://Skills/Fireball/Fireball.gd”.
The players script is in: “res://Player/Player.gd”.
Im using Godot v3.1.1 and newbie in game-engines.
“res://Skills/Fireball/Fireball.gd” is a script file, not a node. get_node() finds a node in the scene tree.
All your nodes exist in the scene tree, but you need to know their relative locations. get_node("Fireball") for example, finds a node called “Fireball” that’s a child of the current node.