
Let's say you have a base Class with a function which you'd like to extend or change in the Object that inherits from the base Class. To get it done we need to declare (override) that function using the same name again in the Object's GDScript file and write the needed code, so when it's called those lines of code get executed instead of the ones written in the base Class.
If you still have to use the instructions contained by the overridden function with the newly written piece of code - call it using the dot sign. Here's a simple example:
func change_state(new_state):
if new_state > 0:
.change_state(new_state)