Code in Parent:
extends Node2D
onready var chi = get_node("child")
var par_var
func _ready():
chi.chi_var=0
chi.chi_func()
func par_func():
par_var=0
chi.chi_var=0
Code in child:
extends Node2D
onready var par = get_node("..")
var chi_var
func _ready():
par.par_var=0
par.par_func()
func chi_func():
chi_var=0
par.par_var=0
(don't ask me why!)
Only if the child calls the 'parfunc()' the chi.chivar=0 gives an error.
So: Parent and child can access each others variables; or their 'functions to do so'.
The parent can call a function in child, to change the parameter of the parent,
but the child can not call a function of the parent to change a parameter of the child.
Or am I missing something?
It seems as if they are both ready.
edit: oh... and in my game it was the other way around: Parent can't call child function to
get variables of parent.