© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
W. Wang, T. WalcottProgramming for Game Designhttps://doi.org/10.1007/979-8-8688-0190-7_20

20. Using Signals

Wallace Wang1   and Tonnetta Walcott2
(1)
San Diego, CA, USA
(2)
El Cajon, CA, USA
 

No matter what programming language you use, the main goal is to break a large program into smaller parts known as functions. If the project is not broken down, then the program will be difficult to follow. At the simplest level, you can attach a GDScript to a node and divide that code into one or more functions. Some functions can run automatically when certain events occur, such as when the game starts. Other functions will only run when specifically called from other ...

Get Programming for Game Design: A Hands-On Guide with Godot now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.