Game Development Community

A newbie's question(Help!!)

by Fed_up · in General Discussion · 03/23/2008 (9:06 pm) · 7 replies

Hello friends
I am really new to TGE
I got a really confusing problem:
I followed the tut, and typed in something like this:

%obj = new Player(MyMan)
{
position = "0 0 0";
rotation = "1 0 0 0";
};

I supposed to make a myMan object, but somehow I keep getting Failed initialize message.
I think I 100% followed the typing , can someone tell me where the problem is plz?

thank you very much!!

About the author

Recent Threads


#1
03/23/2008 (9:47 pm)
Players are a GameBase object, and therefore require a datablock. Change it to something like this:

%obj = new Player(MyMan)
{
     position = "0 0 0";
     rotation = "1 0 0 0";
     datablock = PlayerBody;
};

Assuming PlayerBody is the name of your PlayerData.
#2
03/23/2008 (10:15 pm)
Nothing, delete this account.
#3
03/23/2008 (10:24 pm)
@Houssen El-Hassan
If you bought the torque game engine you could click this link...
tdn.garagegames.com/wiki/TorqueScript#Functions

If you didn't but TGE, I think you are restricted to going on it, but give it a try anyways.
#4
03/23/2008 (10:35 pm)
Nothing, delete this account.
#5
03/23/2008 (11:22 pm)
I understand now! thanks man!
#6
03/24/2008 (7:55 am)
@Houssen: As an FYI, it's generally frowned upon to hijack another person's thread in order to get an answer to your question. But, as an answer to your question about making a base person model in Blender, you will want to turn to the Blender community for that, as they would be the best people to help you with tips. Also, you may want to consider getting a book pertaining to Blender modelling, as making a person is not as simple as a set of directions. Modelling takes talent- especially human modelling. Hope that helps.
#7
03/24/2008 (5:12 pm)
Nothing, delete this account.