Game Development Community

Hello World scripting

by varmint · in Torque Game Engine · 07/02/2002 (11:15 am) · 5 replies


#1
07/02/2002 (11:15 am)
There's nothing like a hello world type of thing yet :(
#2
07/02/2002 (11:26 am)
Dean,

Have you check out

as well as this one?

GG is making a considerable effort to make TGE more newbie friendly, that is TGE newbie friendly.

I am working on a more advanced tutorial for inventory based off of Tim Newls (I belive) work along with several other resources.

Regards,

Ron
#3
07/02/2002 (11:42 am)
I don't think there should be a "Hello World", this is a 3D game engine after all, so I would associate the Test world as the "Hello World" since it load's a basic world with basic textures.

Maybe I am misunderstanding what you are looking for but why would you want the torque engine to paste "Hello World" to the screen? That is something you would have done when learning C++.

--Aaron
#4
07/02/2002 (1:17 pm)
function HelloWorld(%message, %num) {

for (%i = 0; %i < %num; %i++) {
echo("The message -" SPC %message @ "."); //prints to the console
}

return true;
}



HelloWorld("Hello World",1);


>> The message - Hello World.

-----------------------------------------------------------
That what your looking for?

-Tim aka Spock
#5
07/02/2002 (2:21 pm)
I think one of the best ways to achieve a "hello world" program is to implement a script resource from this site, maybe the team implementation. That way you add code, you get to see different areas and you can also try to understand what the code is doing as you go along.

I personally found it to be the best introduction to Torque.