Reader small image

You're reading from  Torque 3D Game Development Cookbook

Product typeBook
Published inJan 2013
Reading LevelIntermediate
PublisherPackt
ISBN-139781849693547
Edition1st Edition
Languages
Right arrow
Author (1)
DAVID WYAND
DAVID WYAND
author image
DAVID WYAND

David Wyand has been using GarageGames' Torque Game Engine for the past 10 years. Among his other interestes are 3D graphics applications, computer networking and Artificial Intelligence for computer games.
Read more about DAVID WYAND

Right arrow

Playing an animation sequence on a ShapeBase class


All classes that derive from the ShapeBase class (such as StaticShape) allow full control over the animation sequences that play on an object instance. In this recipe, we will learn how to start and stop multiple animation sequences on a StaticShape class.

Getting ready

We will be making TorqueScript changes, and working with the World Editor in a project based on the Torque 3D's Full template using the Empty Terrain level.

If you haven't already, use the Torque Project Manager (Project Manager.exe) to create a new project from the Full template. It can be found under the My Projects directory. After that, start your favorite script editor, such as Torsion, and let's get going!

How to do it...

In the following steps, we will change the animation sequences, which will play on a ShapeBase object:

  1. Create a new TorqueScript text file as art/datablocks/npcSoldier.cs and load it into your text editor.

  2. Add the following code to the file that will be...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Torque 3D Game Development Cookbook
Published in: Jan 2013Publisher: PacktISBN-13: 9781849693547

Author (1)

author image
DAVID WYAND

David Wyand has been using GarageGames' Torque Game Engine for the past 10 years. Among his other interestes are 3D graphics applications, computer networking and Artificial Intelligence for computer games.
Read more about DAVID WYAND