Topic was automatically imported from the old Question2Answer platform.
Asked By
hsjaaa
If the root node is KinematicBody2D, and the character has a child node stats storing all the variable root node use, like speed. After the KinematicBody2D node enter the scence tree and get stats 's speed, if the speed changed in child node stats , dose it have to send signal to inform the KinematicBody2D node to change its speed variable so the KinematicBody2D node can move in a different speed?
Thanks!
You could do it with signals yes.
To accomplish this, you should only ever modify the node’s stats (among which, speed) with a dedicated method like “set_speed(value)”. You could emit the signal from there.
So something like that :