Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Component Sandbox 2

Component logic testing and debug tool for Barotrauma. · By Austin

The Basics Sticky Locked

A topic by Austin created 1 day ago Views: 7
This topic was locked by Austin 1 day ago
Viewing posts 1 to 2
(3 edits)

Here you’ll learn how to add two numbers together and display it on a preview node. It will cover the following:

  1. How to create component nodes
  2. How to edit components
  3. How to connect components
  4. How to display results

Creating Components

  1. Press space bar or right click in an open area of the component editor
  2. In the search box, type “Add”
  3. Select the “Adder”

Create Adder

Editing Components

  1. Using step 1 above, create a “Const” component instead of an “Adder” component
  2. Select the “Const” component by left clicking it
  3. In the top right corner, use the Component Editor to set the component’s memory value to 1

Create and Edit Const

Connecting Components

  1. Using step 1 and 2 above, create another “Const” component and assign it’s value to 2 (hint: you can copy/paste inside of CS2!)
  2. Click and drag from each of the Const components’ output nodes to the Adder’s input nodes

Note: The right side of the component nodes is the “output”, the left side is the “input”. You can’t ever connect two input nodes nor two output nodes.

Connect Nodes

Display Results

  1. Use the above steps to create a “Preview” component
  2. Use the above steps to connect the Adder component’s output node to the Preview component’s input node

Create Preview

locked this topic