Available functions
by Jacco Jansen · in Torque Game Engine · 02/15/2005 (5:20 am) · 3 replies
Hi there people
I have used other engines before and they provide thier code 'as is' but with fantastic help on how to use their code to write your game.
Torque on the other hand seems to give the source code away and offer very little in the line of help apart from saying that the people in the forums are always available to help if you get stuck...
Well, if you look over here, you'll find someone who is stuck...
I wanted to use the GUIHealthbar control but could not find a maxValue or decreaseBy value or in fact any value other than a variable field. I thus assume that one has to assign an ingame variable to the variable field and then ingame inc/decrement the variable directly... great, but how does torque know what percentage the value is at? for example if my power level is at 540, how will torque know to draw the health bar at 73%? So I asked my friend who has been using torque for almost 2 years now and he told me there are functions for that eg. setDeclinerate and setDamagelevel (or something like that) but he doesn't know them.
Does this then mean that to find the available functions included with torque one needs to read through all the source files and make a note in notpad (or TextEdit as the case my be as I am a mac user)?
Is there no resource available that states what objects have what available functions? I am sure I saw this at one time but I think i must be going mad. perhaps this is already posted and i simply cannot find the link/need to look in the private section?
If you could provide me with this, i would be most grateful indeed!
Sincerely and with many thanks
CryingRaven
I have used other engines before and they provide thier code 'as is' but with fantastic help on how to use their code to write your game.
Torque on the other hand seems to give the source code away and offer very little in the line of help apart from saying that the people in the forums are always available to help if you get stuck...
Well, if you look over here, you'll find someone who is stuck...
I wanted to use the GUIHealthbar control but could not find a maxValue or decreaseBy value or in fact any value other than a variable field. I thus assume that one has to assign an ingame variable to the variable field and then ingame inc/decrement the variable directly... great, but how does torque know what percentage the value is at? for example if my power level is at 540, how will torque know to draw the health bar at 73%? So I asked my friend who has been using torque for almost 2 years now and he told me there are functions for that eg. setDeclinerate and setDamagelevel (or something like that) but he doesn't know them.
Does this then mean that to find the available functions included with torque one needs to read through all the source files and make a note in notpad (or TextEdit as the case my be as I am a mac user)?
Is there no resource available that states what objects have what available functions? I am sure I saw this at one time but I think i must be going mad. perhaps this is already posted and i simply cannot find the link/need to look in the private section?
If you could provide me with this, i would be most grateful indeed!
Sincerely and with many thanks
CryingRaven
#2
Beacause there isn't anyone spoon feeding answers, a Torque developers needs to invest A LOT of of time, understanding the docummentation. Unfortunetly you don't own Torque so you don't see the DETAILED descriptions of EVERY object and its methods.
If you are serious about game development I would recommend taking the plunge and buying the engine. You will only be able to take modding so far. When you purchase the engine you can spend hours in the private forums. Support the Indies, make the plunge
02/15/2005 (5:34 am)
You need to analize the gui one line at a time. That gui uses the damagelevel of the player. A players max health is set in it's datablock. There is a setDamagelevel() that is how the damage function works. Beacause there isn't anyone spoon feeding answers, a Torque developers needs to invest A LOT of of time, understanding the docummentation. Unfortunetly you don't own Torque so you don't see the DETAILED descriptions of EVERY object and its methods.
If you are serious about game development I would recommend taking the plunge and buying the engine. You will only be able to take modding so far. When you purchase the engine you can spend hours in the private forums. Support the Indies, make the plunge
#3
There's a command to print every Script Function to the console. I don't remember the name. Maybe someone else can tell you or search the forums/resource section.
02/15/2005 (5:39 am)
This is what you're looking for TGE Console Commands Document. Although this is not up to date I think.There's a command to print every Script Function to the console. I don't remember the name. Maybe someone else can tell you or search the forums/resource section.
Torque Owner Gonzo T. Clown