4.5 (with Health, HitBoxes, HurtBoxes 1.2.0)
Question
Change type isn’t working From Node to Health.
4.5 (with Health, HitBoxes, HurtBoxes 1.2.0)
Change type isn’t working From Node to Health.
If Health is a script with a class_name you may have to attach the script instead of using the change type dialog.
Depends on what you’re doing, do you have a custom node or class name called health? Because if you did then you would extend that node. Is that what you’re trying to do?
Example:
#the class's name
class_name ExampleNode2
#what the ExampleNode class extends from
extends ExampleNode
Health is a node in Health, HitBoxes, HurtBoxes.
How are you trying to change the type of the node? Is it by right clicking the node in the node tree?
Are the nodes created in the scripts? If so I don’t believe you can do that, but you can inherit from the original class.
Yes, it just does nothing.
It may have something to do with health having a script attached to it by default.
I did it manually by creating a new node and copying over the script.