#Overriding a variable from the parent class
1 messages · Page 1 of 1 (latest)
im assuming you are getting errors regarding the use of const, which you should just change to var if you plan to change the value
additionally, you could try to change the type of c to Variant so that you dont change the type when you override it
Im getting an error saying that the constant/variable is already declared in the parent class, it happens when using just a regular var too
you likely need to change the values in _init or _ready then to avoid duplicate declarations
You can't redeclare/override variables and even if it were to be a thing it would follow the same rules as overriding methods thus requiring the same types