© 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_3

3. Writing Scripts

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

When you create a project with at least one scene that displays graphic images on the screen, that scene will appear static no matter what the user does. To make a project interactive, you need to write scripts that respond when something happens to a specific node. Two common ways to make a project interactive are to let the user control an object in a project and to let the computer change the appearance of a project when collisions occur between objects.

Scripts are essentially ...

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.