Register | Sign in

Home > Touch Control System (TCS) > TCS Tutorial: Screens


TCS Tutorial: Screens

A Screen in TCS is a 3D game world. 3D components and Lua scripts make it easy to build games, art projects, and interfaces for anything you could imagine.



When you start Touch Control System using the shortcut created for you in the Windows Start menu, TCS starts in Config Mode. This shortcut uses a config command line argument to start TCS in Config Mode and a console argument to start the TCS Console. Config Mode gives you options for setting resolutions and selecting a startup Screen.


Modules are enabled when placed in C:\TCS\Mods. Their contents will be extracted on startup and any Screens found will be available for selection in Config Mode. It is recommended that you always start TCS in Config Mode when adding new Modules or when starting TCS for the first time.


A Screen is created by adding a Screen Object to a Module. This Screen Object consists of four parameters as seen below, Screen Model Name, and Start, Update, and End Scripts.



The first parameter, Screen Model Name, specifies the name of the Screen Master 3D model content object. Objects within a Screen are created using a master 3D model of dummy placeholders which are used to specify cameras, lights, object locations, and additional animation sequences. This model is processed the same way normal models are processed, so you’ll need to add the Screen Master 3D model to the Module Editor as a separate content object. After adding the Screen Master 3D model to the Module Editor, you’ll need to add a Screen content object and point it to the Screen Master object along with any Lua scripts.

The steps below will walk you through creating a new Module with a new Screen.

 

Adding a new Screen to TCS

1. Using the Module Editor, create a new TCS Module and name it demo1.

2. Click on “Module Settings” in the TreeView control.

3. Set the name and location of the compiled Module file using the button to the right of the TCM File field. For this tutorial, save it as C:\TCS\Mods\demo1.tcm.

4. Using the main toolbar, add a new content item to the project. Select “3D Model” and click OK.

5. Navigate to the “Build Settings” tab. In the “Input File” field, add the tcs_screen.FBX file located in C:\TCS\Examples\.

6. Add another content item to the project. Select “Screen” and click OK.

7. In the “Screen Model Name:” field, enter tcs_screen (the name of the model we added previously without the file extension).

8. Select the Object tab of the Screen content item. In the Object Name field, rename the Screen object to demo1_screen and click Update.

9. Click Save on the main toolbar to save the project file for further editing.

10. Using the main toolbar, click on the Build Module button.

You should now be able to start TCS in Config Mode and set demo1_screen as the start-up screen.

 

Overview

In this tutorial we:

  • Configured a new TCS Module project
  • Added a Screen layout 3D model file
  • Created a new Screen definition, pointed it to the 3D layout file, and set the Screen name
  • Built the Module
  • Set the start Screen for TCS


< TCS Home