Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | echojonas |
- parent(parent.gd)
extends Node2D
export var tower_turn_speed = 10
- child(Node2D)
extends "res://parent.gd"
\#result is 10 after i change it to 20 at editor
func _ready():
print(tower\_turn\_speed)
is this a bug? or i do it wrong way
edit: after some test, i found that if the variable name is others like ‘speed’,‘cost’… it works, but with this variable name ‘tower_turn_speed’ , it doesn’t work…
edit2: solved after restart godot…
be prepared to reset godot often (sometimes it’s enough to close & open the scene only)
Reloecc | 2020-09-17 13:27