Hello,
A slight educated guess. The get node command isn’t finding your Player node.
Put a print statement and if it’s null then that’s what it is:
print (get_node("root/Game/Level1/Player"))
What I do is use a Global script to set the player node in the player ready function:
Global.player = self
then you can access the variables in you timer function like this:
Global.player.ACCELERATION = 10
You will have to make sure the player node sets its node value before accessing it with other scripts. Either spawn your player first or check that Global.player is set.
If you’re trying to change a variable within the timer’s parent, you can do it without accessing the absolute path to the node; Assuming the timer’s parent is the player object itself, the function could be written as: