Template:T2DScript

From TDN

Image:HubHeaderLeftA.gif Image:HubHeaderRightA.gif
Image:HubHeaderLeftB.gif

Contents

Torque Game Builder (TGB) for Scripters

Image:HubHeaderRightB.gif

Welcome to the TorqueScript TGB hub. All things TorqueScript relating specifically to TGB on TDN can be accessed from this point.

Getting Started


TAP (Torque Application Platform) TorqueScript Reference:

TorqueScript Overview

Console Objects Fields and Methods Quick Reference

TorqueScript Quick Reference

TorqueScript Console Functions Reference

TorqueScript Command Reference


TGB Reference

TGB Reference Guide - The complete guide to all TGB commands. Note: this is a large page and may take a second to load.

TGB Particle Engine - An easy to read explanation of the workings of the (really cool) TGB particle engine.

TGB Debug Banner - How to use the TGB debug banner, which provides runtime information such as object counts, fps etc.



TGB Main Feature Tutorials. How to get the most out of TGB's built in systems.

TGB Image Map Tutorial - Everything you need to know about image maps in TGB

TGB Tile Map Tutorial - How to get started making tile maps in TGB

Introduction to the TGB Particle Editor - A basic tutorial on creating a particle effect in the TGB Particle Editor.

Using 3D Shapes in TGB - How to use 3D shapes from .dts files (tge format) in TGB



Tutorials for complete beginners. Read through these to have the major principles as well as the subtle details of a topic explained in simple language.

Setting up a Microsoft Windows®-based development system for Torque Game Builder

Building a Debug Version of Torque Game Builder with Microsoft Visual C++ 2005 Express Edition

Creating and Debugging “Hello, world!” with Torque Game Builder

TGB Basic Tutorial - This is a good starting place, it approaches some of the intial concepts behind TGB and scripting objects within it.

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

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

MoveTo Tutorial - This shows a method for creating a function that tells an object to move to a certain screen location

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

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

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



Other TGB Documents

Introduction to the TGB Tile Editor - This is a preliminary bit of documentation on the Tile Editor

TGB on Startup - Brief introduction to the TorqueScript functions that run on startup



TGB - General Game Tutorials and Examples


Basic game tips and examples: Deployment:

Splash screen

Using Sceneobjects with GUIs

Loading status bar

Main menu (GUI)

Custom "options" menu

Handling pause/minimize

Music & Sound effects

Creating user profiles

Saving game state

Organizing game levels

High score tables

Custom fonts

Unicode examples

Tips for good graphics

The Basics

Torquescript optimization

Packaging

Asset protection

Trial period & activation

Accepting payment

TGB Genre Specific TorqueScript Articles


Platformer Game
Basics:
Shooter Game
Basics:
Strategy Game
Basics:

Overview

Setting up Physics and Collision

Building Levels Using Tile Maps

Scripting Basic Movement

Setting up a Scrolling Camera System

Creating Animations for Your Character

Adding Enemies and Basic AI

Implementing Winning and Losing Conditions

Building the User Interface

Additional Topics

Setting up Physics and Collision

Creating Multilayered Tile Layers

Setting up the World to Scroll with Tile Layers

Scripting your Player and Weapons

Creating Enemies and AI Schemes

Implementing a High Scores File

Polishing it off with Particle Effects

Creating a Basic Interface GUI

Overview, Planning, and Design

Creating The World (utilizing Tile Maps)

Mouse Selections and Selecting Objects

Setting up a Unit Creation System and Moving New Units

Creating Scripted Actions/Behaviors

Setting up Basic GUI Interactions In-Game

Setting up the Camera System to Scroll with The Mouse

Setting Conditions for Winning and Losing

Creating a Basic Interface GUI

Role Playing Game
Basics:
Turn Based Multiplayer Game
Basics:
Puzzle Game
Basics:

Overview, Planning, and Design

Creating The World (Heavily Utilizing Tile Maps)

Setting up the World and Getting it to Scroll Properly (Three Methods: Zelda Style, Player in Center Moving in World, Player in Center with World Moving)

Scripting your Player with Animations

Initiating Combat in an RPG (Two Methods: Traditional - No Visible Enemy, Chrono Trigger Style - Visible Enemies)

Creating a Combat System and AI (Two Methods: Traditional Turn Based, Chrono Trigger Style - with a Turn Meter)

Creating an RPG Quest System With Journal

Creating a Basic RPG Dialog System

Developing a Saving and Loading System

Creating a Basic Interface GUI

Develop a Basic Plot Line along with a few Quests for a Sample Game

Concepts Behind Turn Based Multiplayer

Passing Information Between Server and Client

Important Connection Files, Commands, and Callbacks

Creating a Basic GUI to Connect, with Error Messages

Creating a Chat GUI

Connecting the Client to the Server Chat

Updating Clients with Messages and Logins

Polishing off Functionality (Error Messages, etc)

Basic Puzzle:

Allow the Mouse to Select and Move Objects

Snapping Objects (Together and to Other Places)

Creating, Scripting, and Loading Interactive Tile Grids

Detecting When Puzzle is Finished

Creating a Basic Interface GUI

Player Moving Objects Puzzle:

Setting up Physics and Collision for Allowing Players to Move Objects

Detecting Color Combinations, Objects In a Row, etc...

Setting Up a Level Unloading and Loading System

Creating a Basic Interface GUI

Asteroids Style: Tetris Style:

Overview

Adding the Player

Throwing in the Asteroids

Collisions

Polishing

Introduction

Getting Started

Physics and Collisions

Game Area

Shapes

Building Blocks

Game Well

Current Shape

Drawing Shapes

Adding Gravity

Lateral Movement

Rotation

Collision Detection

Next Shape

Detecting Complex Lines

Scoring

Building a Score GUI

Level Difficulty

Game Over Man!

Where to Next?


FAQs

TGB TorqueScript 1 FAQ: Basic Initial Questions

TGB TorqueScript 2 FAQ: Image and Sprite Questions

TGB TorqueScript 3 FAQ: Physics Questions

TGB TorqueScript 4 FAQ: Datablock Questions

TGB TorqueScript 5 FAQ: Data Structures and Data Saving Questions

TGB TorqueScript 6 FAQ: Networking Questions

Image:HubFooterLeftA.gif Image:HubFooterRightA.gif
Image:HubFooterLeftB.gif Image:HubFooterRightB.gif