Game Development Community

Very confused on how to use the editor....

by John Klimek · in Torque Game Builder · 02/07/2006 (7:02 pm) · 5 replies

I've just purchased T2D and am very confused. I've read the Getting Started tutorial as well as most of the TDN but I'm still confused.

The main thing (for right now) that I'm confused about is the T2D Editor (t2d.exe). It appears as though I can press F9 inside the editor and test stuff out (is that correct?)

Let's say for example I want to see how the physics work without creating a script (.cs file). Can I do that? If so, how?

I've tried doing this:

1) Load up T2D.EXE.
2) Press F9 to enter "Test Game Mode" (??)
3) Hit tilde (~) to enter the console.
4) Create new sprite: %temp = new t2dStaticSprite() { scenegraph = t2dScene; };
^^ This appears to work (at least it doesn't give any errors....)
5) Try to set the position of the sprite: %temp.getPosition();
^^ Errors with: Unable to find object: '' attempting to call function 'getPosition'

What am I doing wrong? Am I not understanding the purpose of the F9 editor screen?

Is there a more indepth tutorial/documentation on how to use T2D.EXE to test stuff without creating script files for every little change you want to test?

Thanks for any help!

#1
02/07/2006 (7:11 pm)
%temp is a local variable so it is getting destroyed while using it in the console... you can either use $temp or you can pass a name after t2dStaticSprite(temp)
#2
02/07/2006 (8:48 pm)
Ahhh, ok.

What is "F9" mode? Am I correct in assuming it's only purpose is to test out various commands, etc...?
#3
02/07/2006 (11:50 pm)
F9 basically will toggle the Level Builder, you are correc tin that you can test out various things like this, previously before the Level Builder (you may have seen this and may have not) T2D started to a similar screen (just with the menu bar on top)... now the best way is to go to Launch->Run Game... what this does is not only toggle the Level Builder off it calls "setupT2DScene()" which created a scenegraph called "t2dScene" and you can place additional plugs for your game here. This also ensures easy backwards compatability with previous tutorials and resources :)
#4
02/08/2006 (6:30 am)
So what's the purpose of the level builder? Almost every tutorial on the TDN creates everything via script and nothing seems to really explain the purpose (or how to use) the level builder...

I'm finding the documentation very lacking :(
#5
02/08/2006 (9:29 am)
John,

As you just recently bought T2D, you may not be aware that the level editor is barely over a week old now, as we just got our hands on it with the Alpha4 build (with lots more features added to it with Beta1). Most everything on TDN at the moment was written with either Alpha1, 2 or 3 so it will take some time before people get comfortable with the editor and post tutorials using it.

Also, since we are still in Early Adopter, the documentation ends up lagging a bit behind what gets introduced in the most recent builds. Melv and the GG crew are no doubt working hard on that in addition to the already great work they have been doing getting frequent build updates out to us.

Personally, I really like how the existing tutorials show how to do most stuff in Torquescript. I've gone from 0 programming experience to being pretty comfortable reading and writing script in just a couple months, and I think my games will benefit from it.