Game Development Community

Afew quick questions

by Joseph Euan · in Torque Game Engine · 10/27/2004 (12:58 pm) · 9 replies

Hi all,

Could someone answer some quick questions please.. (sorry if some of the questions are not right for this part of the forum)

1) When I make a new mission how to I add a mission description (for when the game is loading)

2) When I edit the player GUI and add something like a health bar, it's ok until I view it in another resolution... how do I make GUI items compatible for all resolutions?

3) Is it possible to change the text that says stuff like (loading data blocks) to something else?

4) What makes the energy bar go down (I tried running and jumping for a long time but nothing works)

5) Is there a resource around for binoculars (with zoom in/out) in TGE?

I think that's all for now lol

Thanks in advance

Joseph

#1
10/27/2004 (1:12 pm)
@Joseph:

Have you even looked inside the .mis file or searched "within" files? You would most likely find the entries if you at least tried. This was some of the very first things I modified, with the methods I mentioned above.
#2
10/27/2004 (1:22 pm)
Those files are the first I thought about, but what do I open the files in to edit them?
#3
10/27/2004 (2:40 pm)
Ok got question 1 sorted, can someone help with the others?
#4
10/27/2004 (3:42 pm)
@Joseph:

1. In your .mis file look for this

new ScriptObject(MissionInfo)
{
name = "Stronghold";
desc0 = "This death match mission takes place in a small orc village. There are no teams, every orc is your enemy!";
};

name = The name on the mission
desc0 = The description of the map

2. When you are in the GUI editor, lets say u make a button in 800x600 and change your resolution to 1024x768, the button is not in the same place. Well thats because u didnt set the "horizSizing" and the "vertSizing" are set to relative. That makes it where when u change resolutions the button should stay where u put it.

4. What I did to make the energy bar to go down use a jetpack. I used this

Tutorials
. But make sure that you scroll down to the comments and do what TheMartian says.

5. Well there is already a zoom in/out in TGE. Press "e" to zoom and Press "r" to change zoom.

Hope this helps,
Stephen
#5
10/27/2004 (9:16 pm)
Cool... thanks Stephen!
#6
10/27/2004 (9:17 pm)
Not sure if this will help you or not, but it's just a simple few lines to decrease your energy when fire you a weapon. Add this to the top of your crossbowimage::onfire. Not sure if that's what you want, but it's just a way to decrease it. And also I think in the player datablock, there's an energy drain for jump, I haven't fiddled with it so I'm not sure, but that MIGHT drain energy when you jump.

%cost = 10;
%energy = %obj.getEnergyLevel();
if (%energy<%cost)
   return;
%obj.setEnergyLevel(%obj.getEnergyLevel()-%cost);


And you might check this out. www.garagegames.com/mg/forums/result.thread.php?qt=7656

Hope it helps, or at least gets you started :)
#7
10/28/2004 (2:53 am)
Your welcome, Joseph! :)

So did u get all your questions answered ?

-Stephen
#8
10/28/2004 (9:34 pm)
Thanks James.

And yes I have thanks Stephen... no doubt I will have more soon :-p
#9
10/28/2004 (11:12 pm)
Thats great to hear it! :)

-Stephen