#Confusing issue with my ready function and damage text
1 messages · Page 1 of 1 (latest)
where are you declaring label?
but isn't the script with error the enemy script?
is Label a direct child of that Node2D?
and are by any chance calling show_damage before that node is ready?
did you assign that script to any other node or auto-loaded it?
but it seems that is not the ready that is causing that error
is just the node reference being null
ok, can you show me the whole script where the error is happening?
do you still get the error if you remove the take_damage from _ready?
I think is just a matter of the order things are ready
btw, if you are not adding anything to the _ready function you can just remove it from the script
and when using super you can just call super()
func _ready():
super()
yeah, I am not sure right now what is the issue