Learning to Script (pdf)

 The magic of game development starts with coding

For making any interactive game you need to know how to code. To teach you the basics of scripting I’m giving you the first 12 pages of the Hands on Coding Guide which is part of the Sync Reloaded project. If you enjoy this beginner resource or the Hands on Coding Guide please support us by purchasing the full guide. You can find the link to the demo below.

View Guide

If you would like to support Making Indie Games and purchase the full guide which starts on page 13 and ends on page 43 you can below. As a bonus you can view our Camera and Mouse Tutorial for free. View Bonus

Hands on Coding Guide (TGB)

43 .PDF Pags: $14.99

 

Hands on Coding Guide for the Complete Beginner (TGB) PDF

Introduction

Page 4

How to use this guide

Page 4

First code

  1. Getting the Engine
  2. Hello World

Page 5

Using Game Scripts

  1. Game Scripts
  2. Making a Simple Method in a Game Script
  3. Executing the Game Script

Page 6

Variables

  1. Introduction
  2. Variable Types
  3. Scope of Variables
  4. Testing the Scopeof Local Variables
  5. Passing Variables to Methods
  6. Testing Arguments
  7. Returning Variables to Methods
  8. Arrays

 

Page 8

If Statements and Loops

  1. Introduction
  2. Switch Statement

Page 13

Scripting Names

  1. Object IDs
  2. Names

Page 15

Classes

  1. Introduction
  2. Example
  3. Explaining the Code
  4. %this

Page 16

Behaviors

  1. Introduction
  2. Behavior Template
  3. Explaining %this vs. %this.owner
  4. Coding your First Behavior from Sync Reloaded
  5. Testing the Behavior
Page 18

Mixing Classes and Behaviors

  1. Introduction
  2. Classes to Behaviors
  3. Getting %this.Alpha at the Class Level
Page 23

Vectors and String Manipulation

  1. Vectors
  2. String Manipulation
Page 24

Camera and Mouse Tutorial

  1. The Basics
  2. Using Documention
  3. Making the Camera Follow an Object
  4. Using Mouse Callbacks
  5. Clicking an Object
Page 26

Triggers and Collision (Billiards)

  1. Setting Up the Collisions
  2. Adding MoreBilliard Balls
  3. Collision Callback
  4. Creating the Pockets with Triggers
Page 29

Making a Menu and Audio

  1. Adding Menu Images
  2. Coding the Menu Button Behavior
  3. Coding the Audio
  4. Creating the Pockets with Triggers
Page 33

Timers and Creating Object (Gun Turret)

  1. Coding the Timer
  2. Creating Lasers
  3. Coding the Audio
  4. Creating the Pockets with Triggers
Page 37

Particle Effects and Health Bar (Explosion)

  1. Creating the Particle Effect
  2. Creating Damage and an Explosion
  3. Making a Health Bar
Page 40

On the next page you will find a beginner tutorial for the creation of a clock. It is a great first projet for beginners.

 Previous Page

Quick Dev Resources

Absolute Beginner's Guide

Torque Game Builder Tutorials

Graphics Tutorials

Audio Tutorials

 

Powerful TGB Resources

Torque Script Interactive Tutorial

Sync Reloaded and Hands on Coding Guide

Copyrite Making Indie Games 2010