How to increase or decrease player damage in tutorial.base?
by Otto Itkonen · in Torque Game Engine · 09/05/2008 (9:42 am) · 6 replies
Or is there even a function in tutorial.base, that can be used to increase and decrease damage?
If there is, please tell if you know it/them.
And if there isn't, I would like to know, how to cotrol the guiHealthBarHud so I can make one.
Thanks, Otto
If there is, please tell if you know it/them.
And if there isn't, I would like to know, how to cotrol the guiHealthBarHud so I can make one.
Thanks, Otto
#2
09/06/2008 (5:34 am)
Thanks, but do you know how to do this with tutorial.base?
#3
And if you did put it there yourself, you should know where you put the damage score.
09/06/2008 (8:30 am)
Umm, well tutorial.base doesn't have a damage thing. Unless if you have put it in there yourself.And if you did put it there yourself, you should know where you put the damage score.
#4
09/06/2008 (9:27 am)
Thanks. I think it's easy to make a damage thingy, but I don't know how to use the guiHealthBarHud with it. Any idea?
#5
09/06/2008 (12:07 pm)
I'd recommend playing around with starter.fps If you are wanting to make a fps, most of the functions you will need are right there. The health bar is already coded to plug in with your damage/weapon scripts, no extra coding required.
#6
And maybe it's just better and easier to use guiGenericBarHud control.
Thanks anyway.
09/06/2008 (11:25 pm)
Ok, well, I'll try. I'm not actually making a fps and I thought that I don't need most of those scripts, so I decided to start from a "clear table".And maybe it's just better and easier to use guiGenericBarHud control.
Thanks anyway.
Torque Owner J.P. Berry
Check out the crossbow.cs file (in a text editor) for a good example.
Alternatively, you can adjust the player maximum health, which should be in the player.cs file in the same directory.