How to start creating a game with TGE from scrap
by Western Outdoor Interactive · in Torque Game Engine · 02/16/2006 (2:35 am) · 3 replies
I want to create a new plain terrain , animate an object using the TGE script , basically I need to control the object animation . None of the examples shows how to create a terrain from scrap and animating an object with TGE script , I have read some posting saying %obj.playThread(0,"animationname") , in my case the animation need to be controlled by code not by the dts object . Is there any option ? Where i can find some detailed examples showing how to script with TGE language ?
#2
Sounds like you want to create procedural animation for something.
There are posts and resources about animating a model's bones, but it's not a simple thing. Take a look at the Turret resource. That uses named bones and rotates the turret's base towards the player and aims a weapon.
But If you want to do this sort of thing, you're looking at C++ code. I don't believe anyone's made an object that exposes its skeletal animation system to script.. I might be wrong.
thses links might help you on your way www.garagegames.com/mg/forums/result.thread.php?qt=9750
www.garagegames.com/mg/forums/result.thread.php?qt=17454
None of them are what you want really, but they might give you some insight into what's happening.
What exactly do you want to do?.. there may be a better way.
02/16/2006 (5:20 am)
Depending on what you want your object to do, will determine what you do.. (obvious statement :-)Sounds like you want to create procedural animation for something.
There are posts and resources about animating a model's bones, but it's not a simple thing. Take a look at the Turret resource. That uses named bones and rotates the turret's base towards the player and aims a weapon.
But If you want to do this sort of thing, you're looking at C++ code. I don't believe anyone's made an object that exposes its skeletal animation system to script.. I might be wrong.
thses links might help you on your way www.garagegames.com/mg/forums/result.thread.php?qt=9750
www.garagegames.com/mg/forums/result.thread.php?qt=17454
None of them are what you want really, but they might give you some insight into what's happening.
What exactly do you want to do?.. there may be a better way.
#3
What I want is to place a static object ( TSStatic class object ) on the terrain and rotate it with TGE Script , provided the object has no built in animation and the rotation or movement should start on an event and stops according to the script , is there any option inside the script for that purpose ? And i want to know how Frames per second can be displayed on the window using font
02/16/2006 (9:59 pm)
Thank you Mincentro and JasonWhat I want is to place a static object ( TSStatic class object ) on the terrain and rotate it with TGE Script , provided the object has no built in animation and the rotation or movement should start on an event and stops according to the script , is there any option inside the script for that purpose ? And i want to know how Frames per second can be displayed on the window using font
Torque 3D Owner iHugMedia