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 / Center Hud Image

Author
Message
Mr Flowerkohl
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Deutschland - Germany
Posted: 29th Jun 2007 15:21
Hi guys,

hows it possible to center a 1024 X 768 image hud file ?
I tried to give my player a sort of helmet and wanted to
integrate a 1024 image for it.
So, how is it possible ? I hope u know what i mean.

yeah...thats the ticket !
Mr Flowerkohl
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Deutschland - Germany
Posted: 3rd Jul 2007 00:26
anyone ?

yeah...thats the ticket !
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 3rd Jul 2007 03:04
You need to play around with the x and y coordinates until it works well.



Click on the picture to order your copy today!
Mr Flowerkohl
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Deutschland - Germany
Posted: 3rd Jul 2007 13:59
i did play around with the coordinates, but nothing changed. maybe
its because i tried to get my hud image instead of the lifes bar ?
is there any example of getting fullscreen huds to work ? or fullscreen overlays ?

yeah...thats the ticket !
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 3rd Jul 2007 17:43
make a hud in dimensions 1024x768 and make coordinates x and y=0...
Just a joke


All the free PCF Productions Stuff
Mr Flowerkohl
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Deutschland - Germany
Posted: 3rd Jul 2007 21:19
doesnt work. where are the code gurus ?

yeah...thats the ticket !
TEST OF WILL
17
Years of Service
User Offline
Joined: 23rd May 2007
Location:
Posted: 4th Jul 2007 06:34
I shall teach you the ways of the scripting young one, but the scripter who wants to learn, learns himself to script

Just messing around, but here is what you need to do make a trigger zone and apply the script to it (which might help to know what kind of script you are using fro it) and then if you want to center it open the .fpi file like this-



*PLEASE NOTE IF YOU USE THIS CHANGE THE SLASHES AT gamecore/text/NAME,hudname=NAME TO THE OTHER ONES*

Change the line at



to the coordinates to what you want probably 0,0 for both is the center edit these to what works best

Clone Gaming Prouductions
17
Years of Service
User Offline
Joined: 24th Feb 2007
Location: florida
Posted: 10th Jul 2007 21:24
just modify the 'Door' script and change the y axis to 50.


Come see the WIP!
brummel
19
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 10th Jul 2007 21:41 Edited at: 10th Jul 2007 21:42
Have you tried with hudx=50 and hudy=50? That should be the center.

www.myspace.com/sculptednoise
vorconan
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 12th Jul 2007 00:57
It depends on your resolution, x=50 and y=50 is not center unless the resolution is 100x100, thats too bad quality, usually it would be 768x1024 so the center would be 384x512 i think

Login to post a reply

Server time is: 2024-11-27 14:52:51
Your offset time is: 2024-11-27 14:52:51