Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | MaggoFFM |
Hello guys!
I have a base Scene “Enemy” with Area2D “detect_radius”.
In script i do:
export (int) var detect_radius
func _Ready():
$DetectRadius/CollisionShape2D.shape.radius = detect_radius
I inherit from this Scene and Change the value of the Export var.
Enemy to 30.
Endboss to 50.
Now to the Problem… in my tree if i put it like this.
-Enemy
-Endboss
Both of them has 50.
Otherway around.
-Endboss
-Enemy
Both of them has 30.
Do i understand something wrong?
Or do i Need the Area2D in every Scene and not inherit from Enemy?