This physics Brainbox allows the player to make the asset move and jump with their keyboard. Also provides the asset with animations that play when the asset moves and jumps.
- During gameplay, the player controls the asset by pressing the following keys on their keyboard:
- Right Arrow—makes the asset move right.
- Left Arrow—makes the asset move left.
- Space Bar—makes the asset jump.
Brainbox Node Group
After you add this Brainbox to an asset, an If Collide node (Collision), three Keyboard Button nodes, three Animation nodes, and a custom State Machine node appear as a group in the assets node panel.