Some help with learning torque
by Jamie Buckley · in Torque 3D Professional · 01/27/2010 (12:41 pm) · 5 replies
Hi, sorry if this is a stupid question. Am trying to teach myself torque 3d by comparing the full and empty template script and messing around with changing stuff. One thing I can't work out, when a player is spawned by a spawnsphere, they have the basic wasd controls + jumping etc. where is the code that controls these functions? I can see the bindings to functions like "moveRight" etc. in default.bind.cs but can't find the function definition. I'm trying to modify the standard fps controls to allow for very basic flight.
#2
01/27/2010 (1:01 pm)
I'm an indie owner, back to square one for working out how to write my own movement scripts then... :( Thanks for the reply.
#3
What you're wanting to do can be done via scripting.
01/27/2010 (1:23 pm)
Actually, moveRight exists in the scripts. The definitions for the script side movement functions all exist in deault.bind.cs. They use information that is passed to the scripts from the source level via global variables.What you're wanting to do can be done via scripting.
#4
It can be helpful as it will neatly lay out the various directory hierarchies for you and allow global searches for string matches--it makes finding functions somewhat easier.
01/27/2010 (9:53 pm)
There is a code editor/IDE called Torsion in the Torque store specifically for working on Torquescript in Torque projects. It can be helpful as it will neatly lay out the various directory hierarchies for you and allow global searches for string matches--it makes finding functions somewhat easier.
#5
01/28/2010 (9:06 am)
Ah ok thanks, I might try that. I've just started using the torquedev IDE, will get the demo of torsion - see if its better.
Torque Owner Grugin
Default Studio Name