# Function "…()" not found in base self in Godot 4

The script calls a function it does not define and does not inherit. jump() in a script with no func jump() fails to parse with Function "jump()" not found in base self. Define it, fix the spelling, or call it on the node that has it: $Player.jump().

Source: https://flockbay.com/godot/function-not-found-in-base-self/ · Updated 2026-10-30

## What Godot is checking

A call with no object before it is a call on self, the node the script is attached to. The analyzer looks for the function in the script, then in each class it extends up to Object, and stops the script when none has it.

Built-in methods count: a script that extends Node2D can call show() or look_at() without defining them. A method from a class it does not extend, such as move_and_slide() in a script that extends Node2D, is this error.

## Reproduce it

A script that calls jump() without defining it.

```
extends Node

func _ready() -> void:
	jump()

```

## What Godot 4.7.2 prints

```
Godot Engine v4.7.2.stable.mono.official.ed1daf0bf - https://godotengine.org

SCRIPT ERROR: Parse Error: Function "jump()" not found in base self.
   at: GDScript::reload (res://answers/function-not-found-in-base-self/repro.gd:4)
ERROR: Failed to load script "res://answers/function-not-found-in-base-self/repro.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript_resource_format.cpp:46)
```

## Fix it

Define the function in the script that calls it.

```
extends Node

func jump() -> void:
	print("jump")

func _ready() -> void:
	jump()

```

## What the fixed script prints

```
Godot Engine v4.7.2.stable.mono.official.ed1daf0bf - https://godotengine.org

jump
```

## Run this fix with your agent

Flockbay is the Godot editor with an AI agent built in. Paste this into Flockbay's chat, or into Claude Code or Codex connected to Flockbay over MCP: the agent finds the cause in your project, applies the fix, runs the game headless and reads Godot's output to check it.

```
My Godot 4 project prints this error: "Parse Error: Function "jump()" not found in base self.". Find where it comes from and fix it. The script calls a function it does not define and does not inherit. jump() in a script with no func jump() fails to parse with Function "jump()" not found in base self. Define it, fix the spelling, or call it on the node that has it: $Player.jump(). Then run the game headless and check that Godot's output no longer shows it.
```

## A method of a class the script does not extend

move_and_slide() belongs to CharacterBody2D and CharacterBody3D. A script that extends Node2D or Area2D does not have it. Change extends to the node's real type, which the Scene dock shows.

## A Godot 3 method that was renamed

Calls such as instance() or get_rect() on the wrong class, or yield(), were renamed or removed in Godot 4. For renamed ones the message adds the new name.

## Verified on Godot 4.7.2

Both scripts on this page were run headless on Godot 4.7.2 (4.7.2.stable.mono.official.ed1daf0bf) on 18 October 2026, and the output above is what Godot printed, unedited.

Where the check lives in Godot's source: [gdscript_analyzer.cpp line 3769, the message](https://github.com/godotengine/godot/blob/4.7.2-stable/modules/gdscript/gdscript_analyzer.cpp#L3769).

## Questions

### How do I call a function on another node?

Through a reference to it: $Player.jump(), or an @onready var player = $Player and then player.jump().

### Is the order of functions in the file important?

No. A function can call one defined further down the same script.

Download Flockbay free: Flockbay's agent reads Godot's debugger output and fixes errors like this one in your project, on the official Godot. https://flockbay.com/download/

Related: [Identifier "…" not declared in the current scope in Godot 4](/godot/identifier-not-declared-in-the-current-scope/), [Cannot find member "…" in base "…" in Godot 4](/godot/cannot-find-member-in-base/), [Invalid call. Nonexistent function '…' in base 'Nil' in Godot 4](/godot/nonexistent-function-in-base-nil/), [Too few arguments for "…()" call. Expected at least N but received M in Godot 4](/godot/too-few-arguments-for-call-expected-at-least/), [Invalid call. Nonexistent function 'instance' in base 'PackedScene' in Godot 4](/godot/nonexistent-function-instance-in-base-packedscene/), [Every verified Godot 4 answer](/godot/), [How do I see Godot’s output and errors in Flockbay?](/docs/how-do-i-see-godots-output-in-flockbay/)
