Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Gun image placement in main HUD

Author
Message
Baal
17
Years of Service
User Offline
Joined: 3rd Sep 2007
Location:
Posted: 29th Apr 2008 04:26
I'm trying to put every part of the HUD into the same general area (topleft), with every part being Health/Ammo/Lives img/#, aa well as the image that shows the gun you're currently using. I noticed there isn't a user-friendly input field to move the actual gun image, so is there any way- such as a line in setuplevel- to actually move it? (Not a specific gun, but a way to specify coords so that ALL gun images are shown there)

The only thing I could think of is changing every gun's image to have a huge amount of transparent space so that the gun appears to be elsewhere when it really hasn't moved, but that would take a lot of seemingly pointless effort, and more trial and error than anyone should have to take.

Can anyone help?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 29th Apr 2008 10:22
Quote: "Can anyone help?"


Sure can!

Open up your "setuplevel.fpi" located in "languagebank/english/gamebank/mygame/"

in there you'll see this block of code:



Now, that's a lot of stuff to take in, especially if you don't know what you're looking for. So, I'll point out the line in which you'll want to edit:



Believe it or not, this one HUD is what holds all of your gun images that get shown on screen.

The part you want to edit is this:


Notice how the hudx is rather high. This is how far to the right on the screen the HUD will be displayed. Giving a value of 100 will put the center of the image on the right side of your screen.

To have it on the left side, you'll want to give it a value of something small, like 15.

Just for reference, hudy determines how far down on the screen the HUD will be displayed.


Have fun!


The one and only,
~PlystirE~

Login to post a reply

Server time is: 2024-11-24 07:52:36
Your offset time is: 2024-11-24 07:52:36