Node - ignorantbliss/nba GitHub Wiki
Nodes are the individual 'pieces' of a script in Noisy Big Adventure.
The Noisy Big Adventure scripting system is visual, meaning that instead of...
On activated - Operate [Door]
...you instead draw your script.
Each Node has a type and may also have one or more inputs, outputs and options.
Node programming is also known as flow programming, since information 'flows' between your nodes - travelling from the output of one node into the input of another. When writing your script, you connect a node output to another nodes input. Information the nodes across those connections.
Each node in your script will either...
- Detect events in your game,
- Trigger events in your game, or
- Perform logic or transform your inputs and outputs.
Outputs
The outputs of a node allow you to send data to other nodes.
Most scripts begin with one or more nodes that only have outputs. This is how new information from your game enters the script.
Examples of output-only nodes are IS ACTIVATED and IS VISIBLE.
Inputs
A node with inputs can take information from another node.
Most scripts end with one or more nodes that only have inputs. These usually do something to change your game world, such as opening doors, revealing objects etc.
Examples of input-only nodes are ACTIVATE and VISIBLE.
Options
Some nodes also have options that control how they behave or what they apply to.
For instance, the IS ACTIVATED node allows you to choose which Props and Terrain Blocks you want to check.
What you are going to read about
NoisyBigAdventure uses a node system. This article tells you what the nodes are.