# Nodes

By default **Action** and **Trigger** node types are generated with the name and icon of the first action or igniter/trigger selected. You can rename them as you like the name won't be changed unless it's empty.

## Start Node

When a **State Machine** is created it comes with a **Start Node** which it runs whenever the State Machine is executed. This special node is the same as an **Action Node.**

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-d1935898161cf73940f36c87cc31bdd78c59b64b%2FScreen%20Recording%202021-02-12%20at%201.01.45%20PM.2021-02-12%2013_02_58.gif?alt=media)

{% hint style="info" %}
**Start Nodes** can be changed if it's needed. Just create a new **Action Node** then right click and set the new node as the **default node.**
{% endhint %}

{% hint style="success" %}
The **Invoker** target is always available in Start Node.
{% endhint %}

## Action Nodes

This type of node works the same way as a GC **Actions List** it can have as many actions as you like.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-e2d69864e0b6ff039fefedcac664a108cc0f7fa2%2Fimage.png?alt=media)

{% hint style="info" %}
Once execution is completed it will move to the next **Transition** and **Action Node** if there is any.
{% endhint %}

## Trigger Nodes

Use triggers to execute specific action nodes.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-4025b8ebfa5692baec79a6f8fd3db65e8b6381ed%2FScreen%20Recording%202021-02-13%20at%201.16.06%20PM.2021-02-13%2013_17_50.gif?alt=media)

{% hint style="info" %}
Keep in mind that in some triggers the target **Invoker** can be used like **On Player Enter.** There are other cases like **On Input Key** where there is no invoker in this case it is required to use the **Invoker** variable from the **State Machine.** [Click here to **learn more**](https://docs.ninjutsugames.com/game-creator-1/state-machine/editor-graph/targets)
{% endhint %}

## Transition Nodes

Add transitions to move between **Action** and **Trigger** nodes. These transitions can have conditions if the conditions are met they will keep going. If no **conditions** are assigned they will simply go to the next node.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-66c1ca4dd918516ba939e2106db455aa87f5d94e%2FScreen%20Recording%202021-02-13%20at%201.22.36%20PM.2021-02-13%2013_24_36.gif?alt=media)

{% hint style="info" %}
To **delete** transitions select it on the graph then select the transition you want to delete on the list in the inspector the click on the minus icon.
{% endhint %}

### Mute Transitions

Transitions can be disabled or turned off by enabling **Mute** toggle. This will make the State Machine ignore this transition.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-ffc5bd29f3640998baba1abd9a2783b0a7ac054f%2FScreen%20Recording%202021-02-12%20at%2012.36.05%20PM.2021-02-12%2012_39_45.gif?alt=media)

## Sub-State Machine Nodes

It is possible create Sub-State Machines when another level of organization is needed. Transitions from action or triggers to sub-state machines are possible as well, this will popup a context menu to select where the transition should go.

![](https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-cd647676e551b9f9a2f26af2cf47ffff7431bd80%2FScreen%20Recording%202021-02-13%20at%2010.45.54%20PM.2021-02-13%2022_47_23.gif?alt=media)

You can even drag and drop another State Machine and it will automatically create a copy and paste it as a Sub-State machine.
