Game Development Community

Torque Script VS C

by Martin Ortiz · in Torque Game Engine Advanced · 02/04/2007 (8:20 pm) · 3 replies

When doing a creating a new game....

Should one focus on doing it via Torque Script? or via C++?

In other words, would you recommend to leave the C++ untouched (unless absolutely necessary)
and consider it the "core" of the game/game engine that's been "completed" , and to author your game via Torque Script?

#1
02/05/2007 (7:40 am)
It depends on profiling, personally. If you prototype functionality in TorqueScript and it ends up being horribly unwieldy, then moving it into the C++ side can greatly increase your speed of execution (as long as your algorithms are solid).
#2
02/05/2007 (7:58 am)
I preferred TS over C++ when I began, but now I prefer C++ and only use Torquescript for simpler gameplay mechanics and schedules, usually.
#3
02/06/2007 (6:57 am)
As Stefan explained, TorqueScript is used for gameplay mechanics. Things like the user interface, characters speed, what happens when a player dies, how fast your bullets move, etc are done in TorqueScript. C++ is used for a variety of other reasons, for instance adding a new vehicle type that doesn't already exist in Torque to your game.