Get started with visual scripting for Effect Maker
Visual scripting is a tool you’ll use when creating interactive effects. Interactive effects are effects that change based on how someone is using the effect. You’ll be able to create a wide range of interactive and dynamic effects in Effect Maker without having to write traditional code.
How visual scripting works with nodes
Create Effects with Effect Maker
Visual scripting is a method of programming that doesn’t require writing traditional code. It uses blocks of code, called nodes. Nodes are the basic building blocks of visual scripting. Visual Scripting allows each node to carry out a distinct function as part of your overall logic flow.
Node Structure
Each node represents an action or command for specific action or function, and they come with input and output ports.
- Inputs: located on the left side of the node, these receive either the flow of execution (green triangle) or data (gray circle) from other nodes.
- Outputs: located on the right side of the node, these ports send either the flow of execution (green triangle) or processed data (gray circle) to other nodes.
Node connections
When you connect nodes, you are creating a flow of actions—the nodes receive and pass on information through their connections. It allows you to create advanced, interactive, fun effects without needing a background in programming.
- Control flow (green line): determines the order in which nodes execute.
- Data flow (gray line): transmits information (like numbers, objects, variables) between nodes.
Node categories
There are 6 categories of nodes, each represented with different colors.
When
- Triggers : These are nodes that start or activate a sequence of actions based on specific events or conditions, such as when the screen is tapped.
Conditions
Establish relationships between nodes, defining logic and data flow.
- Logic : These help you make decisions within your script by evaluating conditions and performing actions based on whether those conditions are true or false, like if an object is visible or not.
- Control Flow : Control flow nodes manage the order and timing of actions in your script, allowing you to create loops, wait for a certain amount of time, or execute actions in a specific order.
Then
- Objects & Properties : Objects and properties nodes allow you to change objects’ attributes, such as their position, rotation, or opacity.
- Math : These nodes manipulate numerical values in your script by performing various math operations.
- Time & Utility : These help you manage time-related actions in your script and manipulate data.
More
- Variables : Store information and states the effect might need to remember and use, like a tap counter or a score in a game.