I am making a save system for my game. I have the save system get up, but I am trying to access a variable in my player script in another script. How do? I tried something like:
onready var nextLevel = get_tree().get_root().get_node("Node2D).find_node('Player_Node) (or just Player_Node in the get_node()
then in a function I tried
nextLevel.level += 1
But it doesn't work.
How do?