Node Copied to Clipboard!

Editor Documentation - Nodes


If Node

The if statement allows you to execute the first line of flow, otherwise it will assume false and execute your second line of flow.

Scene is setup with three possible options to click on.

First drag one of the three possible options from editor window to the Storyboarder.

Right click drag from the objects bottom handler, their are many options but for now we will select Is Clicked.

Right click drag from the bottom handler of the Is Clicked node and select the If node.

Copy over the object in the story border by right clicking on the object and select copy then paste, or hold down Ctrl and left click drag the object to copy.

Right click drag from the object's bottom handler and select the Animate node, enter a value in the animate node to make it animate.

Connect the If Node to the Animate Node.

Right click on the story border hover over the Controls option and select Loop.

Connect the Loop Node to the Setup Node and the If Node. Note that top right handler of the Loop Node is connected to the If Node. If you play the lesson now, every time you click the object will animate once per click and loop over.

Select the If Node and look at the properties menu, the last propertie is Else and on the most right of it you will see a minus ( - ) sign click it to reveal the Else slot in the If Node.

Select the Is Clicked Node + If Node + Animate Node. Copy over the Nodes selected by right clicking on the Nodes and select copy then paste, or hold down Ctrl and left click drag the object to copy.

Drag the second possible option from the editor window to the story border and duplicate it.

Connect the second object to the Is Click and Animate nodes.

Connect the Else slot from the first If Node to the main flow of the second If Node.

Drag the third and final possible option object from the editor window to the story border

Attach the third object to a Is Clicked & If Nodes.

Right click drag from the upper right side handler and select Message Box, and type in the text Try Again. Then connect the Else slot from the second If Node to the main flow of the third If Node.

Now when you play the lesson you will have three possible options.

  • Option one will animate the first object.
  • Option two will animate the second object.
  • Option three will play a message box reading try again.

Node Example