Template:TGBScriptingGeneral

From TDN

Graphical User Interface Tutorials


GUI Button Tutorial - This is a very simple introduction to the GUI Editor and making buttons

GuiControlListPopUp Tutorial - This is a step by step example for adding a GuiControlListPopUp and setting custom values

Keeping Score - Explains the basics for tracking and displaying the score in a game.

Pause screen - Code snippet for creating a pause screen.

Splash screen - Short guide on how to set up two splash screens on game startup.

Dynamic Splash screen - Short guide on how to set up a series of dynamic splash screens on game startup.

Using Sceneobjects with GUIs - Tutorial on how to use t2dSceneObjects in your GUIs.

Configure GUIs for Multiple Resolutions - Learn how to dynamically re-size your GUIs and text for different resolutions.


Specific Function Tutorials


Changing the Window Title - This shows how to change the title of the T2D window

Fading Tutorial - This shows a method for fading objects in and out

Mouse Movement - A short tutorial explaining how to control a scene object with the mouse.

Joystick Setup - How to setup a joystick for use

Music & Sound Effects - How to add music and sound effects to your game

Object Selection 1 Tutorial - Shows a simple method for selecting objects and making them follow the mouse

Object Selection 2 Tutorial - Shows a more complex method for selecting objects and making them follow the mouse

Object Selection 3 Tutorial - Uses the previous object selection tutorials to illustrate the creation of a simple debug message tool using GUI objects

PathPoint Tutorial - This shows a method for creating pathfollowing code using a queue of locations for an object to move to

Package Tutorial - Basic concept for creating a package

Hello TGB Network example - The minimal example for TGB networking
What Time Is It - Clock Example (Mounting & Rotation Demo)

Moving Along a Tile Map, Tile by Tile - Basic Tile by Tile Movement Tutorial


Game Play


High score tables - Explains how to create a simple High Scores table and save/load the data for later use


Deployment Tutorials


Asset protection - Guide to add encryption to protect your game files.


Working with Source Tutorials


C++ Tutorial - Goes through the basics of getting into the C++ code, making a new object, and exposing it to script.


Mini Tutorials


Follow this link to access the TGB Mini Tutorial section


TGB Tutorial and Examples Wishlist


Graphics and GUIs: Gameplay: Deployment:

Main menu (GUI)

Loading status bar

Custom "options" menu

Tips for good graphics

Creating user profiles

Saving game state

Organizing game levels

Handling pause/minimize

Custom fonts

Unicode examples

The Basics

Torquescript optimization

Packaging

Trial period & activation

Accepting payment