Method, member function

2025/12/27

Type
Learning Resource
Format
Glossary Article
Version
General
Subject Tags
Code
Assets
All else
Copyright 2016-2026, GDQuest
Created
2026/02/16
Updated
2025/12/27

Method, member function

In programming, a method, often referred to as a member function, is a function that is defined within a class and is associated with an object instance.

In Godot, every node is an object, and every function provided by this node is a method. For example, you can call the function start() on a Timer node: This start() function is a method. It runs on one Timer node instance and starts this specific timer.

In Godot's GDScript programming language, every function you define in a script is a method by default unless you make it a static function.

Generally speaking, we use methods to define the behaviors of an object, allowing it to perform actions, modify its data, or calculate and return data. Unlike static functions, methods have access to the data (properties) and other methods of the object they belong to.

Become an Indie Gamedev with GDQuest!

Don't stop here. Step-by-step tutorials are fun but they only take you so far.

Try one of our proven study programs to become an independent Gamedev truly capable of realizing the games you’ve always wanted to make.

Nathan

Founder and teacher at GDQuest
  • Starter Kit
  • Learn Gamedev from Zero
Check out GDSchool

You're welcome in our little community

Get help from peers and pros on GDQuest's Discord server!

20,000 membersJoin Server

Contribute to GDQuest's Free Library

There are multiple ways you can join our effort to create free and open source gamedev resources that are accessible to everyone!