Requesting Basic Script Examples...
by Dagem Mammo · in Torque 3D Professional · 09/01/2009 (2:17 am) · 31 replies
I have been reading through the Torque Book (Game Programming Guide to Torque).. but it seems that it is a bit outdated.
I tried implementing some scripts.. so far I can get a basic static object to load and drop from the sky.
The problem is that when I try to follow some of the examples of the book.. many of the object names have changed.. like the new MissionGroup.. I have not been able to find the replacement for the "BaseItem" class I wanted to extend like they do on the book.
So I'm simply requesting some sample scripts with basic meshes/collision data.
I want to learn more about the way torque does "animations"... so I can move a model across a plane.. etc etc.. is it just based on some transformation + loop? If so what is the best way to do this.. seeing as how something like "sleep" is not really what I want.
Basically I want to learn very basic things like being able to move an object across the screen (eventually activate a walking animation as the obj moves), collision detecting that causes an action (so picking up an item or talking to an Avatar). I'm assuming that I need to extend on the Player or Vehicle class for many of these examples? Once I am able to do these basic things I can move on to implementing more interesting things like state machines and other game AI.... which I have done in other simpler systems.. but I just can't find many useful examples for Torque 3D.
Thanks
I tried implementing some scripts.. so far I can get a basic static object to load and drop from the sky.
The problem is that when I try to follow some of the examples of the book.. many of the object names have changed.. like the new MissionGroup.. I have not been able to find the replacement for the "BaseItem" class I wanted to extend like they do on the book.
So I'm simply requesting some sample scripts with basic meshes/collision data.
I want to learn more about the way torque does "animations"... so I can move a model across a plane.. etc etc.. is it just based on some transformation + loop? If so what is the best way to do this.. seeing as how something like "sleep" is not really what I want.
Basically I want to learn very basic things like being able to move an object across the screen (eventually activate a walking animation as the obj moves), collision detecting that causes an action (so picking up an item or talking to an Avatar). I'm assuming that I need to extend on the Player or Vehicle class for many of these examples? Once I am able to do these basic things I can move on to implementing more interesting things like state machines and other game AI.... which I have done in other simpler systems.. but I just can't find many useful examples for Torque 3D.
Thanks
About the author
#22
09/05/2009 (11:52 am)
Yeah in beta 5... any recommendations? I'm not sure how I can get beta 3 or 4.
#23
09/05/2009 (11:55 am)
i've added about 15 npcs to a map with no crashing, maybe you have a similar problem as deep. If he's in a GMK kit vehicle his game crashes when a npc is added. are you using this pack as well? Note when driving the buggy it does not crash the game.
#24
1) Removed beta 2
2) Installed beta 5
3) Created a new project based on the "Full" template.
4) Went to the source code of the new project and did the things Omegadog suggsted.
5) Opened up the toolbox
6) Started the World Editor... went to the library.. found the NPC objected and double clicked it... the object falls.. then bounces once or twice and the world editor crashes every time =(
09/05/2009 (12:03 pm)
So basically I have done this:1) Removed beta 2
2) Installed beta 5
3) Created a new project based on the "Full" template.
4) Went to the source code of the new project and did the things Omegadog suggsted.
5) Opened up the toolbox
6) Started the World Editor... went to the library.. found the NPC objected and double clicked it... the object falls.. then bounces once or twice and the world editor crashes every time =(
#25
09/05/2009 (12:32 pm)
So to answer you question... there is no extra stuff but what comes with the standard template....
#26
http://www.garagegames.com/community/resources/view/17253
Just tried it again and it works. I'm not sure why it crashes you... hmm what model are you using?
09/05/2009 (3:07 pm)
create a new template then:http://www.garagegames.com/community/resources/view/17253
Just tried it again and it works. I'm not sure why it crashes you... hmm what model are you using?
#29
09/05/2009 (4:09 pm)
yep that's what im getting, except my guy's not naked :)
#30
Other than that... this is fantastic, thanks a lot guys.
09/05/2009 (6:55 pm)
Hmmm thanks for that... so if I start the game (hit Play) and then AFTER I am inside the game hit F11 to bring up the World Editor mode..then it works perfectly. I'm just a bit confused why it crashes if I bring up the world editor (from the Torque script toolbox)? Can you guys try it to verify?Other than that... this is fantastic, thanks a lot guys.
#31
09/05/2009 (9:01 pm)
Clicking the world editor button never works for me it crashes my game 1000% of the time. Guess they still have a bug in it.
Torque Owner Kevin Mitchell
12 CatBlack Studios
some things have changed i think...