SCRIPTING
SCRIPTING
Scripting is a powerful tool that allows us to create gameplay behaviors and logic for our game.
Scripting is a powerful tool that allows us to create gameplay behaviors and logic for our game.
It is done by creating a Script in the FileSystem, which is essentially a text document filled with code that
It is done by creating a Script in the FileSystem, which is essentially a text document filled with code that
we can then attach to a node, via the Script property, which every node has. Our code will then
we can then attach to a node, via the Script property, which every node has. Our code will then
affect the node directly, doing things like influencing the player’s position or acting as an enemy AI.
affect the node directly, doing things like influencing the player’s position or acting as an enemy AI.