Invalid call when game starts

Godot Version

4.6

Question

Invalid call. Nonexistent function ‘is_stopped’ in base ‘Timer’.

I create a timer in a parent class (class A). when i run the game with only the parent class, everything is fine. But when i add a class (class B) that extends from class A, the game gives me the Invalid call. Any ideas how to fix it without creating the timer in class B?

Can you share the code of both ClassA and ClassB?
And a screenshot of your scene tree.

1 Like

wild guess without seeing the code:

you’re overwriting a function from ClassA in ClassB, which is used in ClassA to initialize the timer.

This could be as simple as using _ready() in ClassA and _ready()in ClassB, without calling the base _ready method via super() in ClassB

This was the problem, thanks!!