Let's say I have a parent script with the following variables :
then let's assume I inherit this script. So now I have a new scene having a child script like this :
extends "res://parent.gd" #The script above
speed = 100
position = Vector2(100,100)
health = 100
.... some code using the above variables !
Now let's say that I further inherit this script. So now I have a grandchild script :
extends "res://child.gd" #The script above
speed = 500
position = Vector2(300,300)
health = 10
What I want to know is that whether something like this will work or not ? And if yes then I want to know if the code in the child script will behave differently as the grandchild script is making changes to variables and is inheriting from child script.