Skip to main content

Tutorial - Hello World

In this tutorial we will create a simple script which prints a message to the log when the map is loaded.

  1. Start by placing a new logic entity in a map. Open the entity's logic decl from either the entity inspector or by clicking Select Entity in logic designer.
    hello world step 1
  2. You should now see a blank graph. Right click anywhere on the graph and select the Game / Begin node from the menu.
    hello world step 2
    hello world step 2a
    hello world step 2b
  3. Right click again and select the Debug / Log node.
    hello world step 3
  4. Select the new Debug / Log node and set the Message input.
    hello world step 4
    hello world step 4a
  5. Drag a link from the Game / Begin node to the Debug / Log node.
    hello world step 5
  6. Save and then launch the map. You should see the message "Hello World" output to the console/log.
    hello world step 6