Hour 4. Scripting

What You’ll Learn in This Hour:

• The relationship of Objects and Scripts

• Basics of GDScript

• Signals and Groups

Many games shine because of their unique or well-polished game mechanics. Most behaviors need manual programming, which can often be quite complex. Godot features a scripting system with which you can implement those systems and it encourages you to apply many battle-tested patterns of software engineering.

This fourth hour will show you how to use GDScript, Godot’s custom scripting language, to give nodes and objects custom behaviors. It shows how to create scripts, attach them to objects and nodes, and make them interface with other objects. We will see how you can use predefined and custom signals to decouple ...

Get Sams Teach Yourself, Godot Engine Game Development in 24 Hours: The Official Guide to Godot 3.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.