You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
STBrian edited this page Nov 5, 2025
·
3 revisions
The main reason for creating a script is probably so that your code will run when a certain event has occurred within the game, so that you can change the state of the player or the world.
Imagine you want the player to be able to go faster when holding an item. Then you need to find out what item the player is holding and modify its speed.
For all those direct interactions with the game, there's the Game module.
In this module you will find the following submodules: