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 / Make your own HUD tutorial

Author
Message
kir0s
User Offline
Joined: 23rd Apr 2018
Location:
Posted: 26th Apr 2018 17:33
Watched this method on YouTube and now gonna share with ya guys.
First of all I would recommend this site http://imajji.net/topic/page/2d-gui-hud-creator-visor-tutorial
Here you can discover something interesting for projects of thy own.
Now first of al go to the directory languagebank\english\gamecore\huds\
Chek it out in couple of examples below as it shown...

:state=0:hudreset,hudx=1?,hudy=2?,hudimage=languagebank\english\gamecore\huds\3?.4?,hudmake=display

where 1?-2?=cordinates
3?=hud name
4?=hud filetipe (example:tga,jpg,png,dds)


As you understood, there are lots of syntaxes to modify yo own code and let to learn how to do code in script you could see there written by user Leon Kennedy.
[href]https://forum.thegamecreators.com/thread/149704][/href]

; Artificial Intelligence
; Written by Leon Kennedy
; Based on a script found in the Official Community Guide
desc = Multiple HUDs to display

; Triggers
:state=0:hudreset,hudx=5,hudy=5,hudimage=gamecore\huds\yourhudimage.tga,hudname=yourhudname,hudhide=1,hudmake=display
:state=0:hudreset,hudx=5,hudy=5,hudimage=gamecore\huds\yourhudimage2.tga,hudname=yourhudname2,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=50:hudshow=yourhudimage,state=2
:state=1,plrdistfurther=51:hudunshow=yourhudimage
:state=1:hudunshow=yourhudimage2
:state=2,plrdistfurther=51:hudunshow=yourhudimage,state=3
:state=2:hudunshow=yourhudimage2
:state=3,plrdistwithin=50:hudshow=yourhudimage2
:state=3,plrdistfurther=51:hudunshow=yourhudimage2
:state=3:hudunshow=yourhudimage
ncmako
6
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 28th Apr 2018 17:10
kir0s Hello and welcome to the forums Yes, huds are a great way the customize ones game play.
In your "doc's" folder there are several .pdf's with a ton of info. The Fpsc manual is a great place to
start, then there is the Community Guide ( ocfpscguide.pdf) with more examples to learn from.
Also at the top of this forum is a thread with lots of detailed info on how to setup scripts & huds https://forum.thegamecreators.com/thread/192148
And don't forget the Syntax list with all the commands ( very much needed when scripting) https://forum.thegamecreators.com/thread/180924

Best,
My games never have bugs. They just develop random features..
Lots and lots of random features...

Login to post a reply

Server time is: 2018-10-17 11:22:22
Your offset time is: 2018-10-17 11:22:22