Can't alter a variable in parent node

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SouthBySouth

I am attempting to use a timer to alter a variable in the parent node of the timer, the player.

func _on_DashTimer_timeout():
get_node("root/Game/Level_1/Player").ACCELERATION = 10
get_node("root/Game/Level_1/Player").MAX_SPEED = 50
get_node("root/Game/Level_1/Player").velocity = get_node("Player").current_velocity

however, whenever I run it, it says “invalid set index ‘ACCELERATION’ (on base: null instance) with value of ‘int’”

I haven’t spelled it wrong or anything, so I’m not sure what’s going on. Anyone know the solution?

:bust_in_silhouette: Reply From: SteveSmith

Change the paths to “/root/Game/Level_1/Player”