4
Scripting with GDScript
In this chapter, you’ll begin your journey into GDScript, the scripting language at the heart of Godot. Scripting is a crucial part of game development, enabling you to control the behavior and interactions within your game world. By learning GDScript, you’ll gain the ability to define game mechanics, create dynamic interactions, and build functionality that goes beyond static assets.
We’ll start by showing you how to create, edit, and save scripts in Godot. Then, we’ll introduce you to key programming concepts, such as variables and data types, and how they work together with Godot’s order of execution. You’ll explore mathematical and logical operators that allow you to perform calculations and comparisons, followed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access