Question ABout C++ and torque script
by Tom Biagioni · in General Discussion · 02/20/2009 (11:26 am) · 2 replies
My question is, if i write some code in C++ and compile it into the torque SDK, do i also have to impliment the code in torque script as well? I am planning on writting an A Star algorithm for myself in C++, but im still new to how the torque engine works. Like do i just make a call to my algorithm in torque script code?
hope this makes sense lol.
hope this makes sense lol.
#2
Im almost done with 3d game programming all in one, but im still not quite sure to impliment things in C++ and torque script.
02/20/2009 (1:12 pm)
Im gonna use the example from Programming game AI by example. Ive read the book already, but im gonna give it another read through. I wanna see if i can get code to work for some good expirience. Ive been doing C++ for about 3 years now, but ive onyl been doing torque for a couple months hehe.Im almost done with 3d game programming all in one, but im still not quite sure to impliment things in C++ and torque script.
Associate Orion Elenzil
Real Life Plus
pretty much.
many things can be implemented either in C++ or in Script,
and there are several mechanisms for the two sides to talk to each other.
i generally use script for high-level game logic and UI tasks, and C++ for smaller core functionalities. A-Star would be a good candidate for putting in C.
fwiw, i think there are already one or two A-Star implementations in the TGE resources, and i think one of them is in C.