Input nodes are the key to interactive lessons, they react to player input.
Wait For Click is an action node that waits until the player clicks the scene object it is dereferenced from to progress to the next node.
This example would wait for the player to click the cone scene model before progressing along its line of execution.
Wait For Any Click is an Input Node that will wait for the player to click anywhere before progressing the lesson.
The WaitForKey node will take a keycode as an argument and wait until that key is pressed by the user before continuing its flow of execution.
Right-click on the storyboarder to add a Keycode node.
Click on the bottom handle of the Keycode node and select the key you want the player to press.
Attach this node to the WaitForKey's argument handle or drag it right into the parameter slot.
This Example will wait for the player to press the Enter key before continuing.
We can also use the following input nodes for even more precision:
All of these nodes can be used by dereferencing an input node and using the KeyCode node as shown above.
There are also more specific nodes available for commonly used key presses such as IsAltDown, IsShiftDown or IsLeftMousepressed you can view this list of nodes by clicking the bottom handle of an input node.
You can use the WaitForMouseEnter and WaitForMouseLeave nodes to track the players mouse position and trigger events to occur when their mouse enters into the space occupied by an object or leaves it.
For Example, you could have the object change color when the mouse hovers over the object and change back when it leaves.