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 Product Chat / HUD position

Author
Message
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 13th Jan 2009 21:43
Hi there.

I've just made a new HUD and want to test it out. However, whenever I put it into FPSC I find it half way up the page.

I managed to centre the image by setting the X coordinates to 50 in the global settings but it's still half way up the page. FPSC doesn't seem to like my changing the Y coordinates from 5. How can I solve this problem?
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 13th Jan 2009 21:48 Edited at: 13th Jan 2009 21:49
Quote: "I managed to centre the image by setting the X coordinates to 50 in the global settings "


Which HUD are you relocating?

Lets see what changes you made.

Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 13th Jan 2009 23:44
Hi there.

I'm not actually relocating an existing HUD, I've made one myself.

Do you need a picture or anything?
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 14th Jan 2009 00:42 Edited at: 14th Jan 2009 00:46
Quote: "I'm not actually relocating an existing HUD, I've made one myself."


But you said...

Quote: "I managed to centre the image by setting the X coordinates to 50 in the global settings"


Why are you messing with the global settings then, because those would be for existing stock HUDs.

A custom HUD should be created and displayed via FPI scripting.

Look in your scriptbank at the pickupkey.fpi for an example of creating and displaying a hud.

Quote: "

;Artificial Intelligence Script

;Header

desc = Pickup Key

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=keyprompt,hudfadeout=keyprompt
:state=1:rundecal=5

;End of Script

"



The parts in bold specify the HUD's locations on the screen.
The Numbers are percentages I think, so the example is in the middle (hudx=50) and near the bottom (hudy=90)
Make sure you are not placing the HUD off screen because of its size.

Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 14th Jan 2009 01:14
Ok thanks. As you can guess, this is the first time i've done this
Butt monkey
17
Years of Service
User Offline
Joined: 7th Dec 2006
Location: Scotland
Posted: 14th Jan 2009 15:15 Edited at: 14th Jan 2009 15:16
Hang on a sec. It's not that sort of hud. It's a background for your health, lives etc.

A hud like this:

http://i126.photobucket.com/albums/p119/p0lar_bear/Halo/HUD3.jpg
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 14th Jan 2009 17:05 Edited at: 14th Jan 2009 17:07
That is already covered in Tutorial #4 on page 33 of The Official Community Guide To FPSC, which is located in the Docs folder of FPSC.

Read that and remember the values are percentages for the screen positioning.

If you have trouble after reading that and trying again, then post the script.

Login to post a reply

Server time is: 2024-10-11 23:21:12
Your offset time is: 2024-10-11 23:21:12