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 / View a hud when...

Author
Message
Styloo
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: France
Posted: 23rd Oct 2007 19:10
...I put my finger in "G" ( per example )

I explain, I need a script, who, when I touch "G", I look a hud, and when I re-touch "G", I don't see the hud.

Do you know a script ?

Thanks you per advance,
Styloo

StarGate Arena, official site ENG/FRA : http://pacific-interactive.site.voila.fr/
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 23rd Oct 2007 20:00
You mean like showing objectives?
Look in Nickydudes guide.

Visit our new website! www.bigvikinggames.tk !New Forum is up!
Follow the progress of Lost Treasures
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 23rd Oct 2007 22:39 Edited at: 26th Oct 2007 21:09
If you have the image for the hud you want, then this is quite easy to accomplish.



replace the <path to your hud> with the path leading to your hud. Remember that the path assumes that the current directory is the "Files" directory in the FPS Creator folder. so if your hud was named "MyHud.tga" and it was in the directory "FPS Creator/Files/gamecore/text" directory, then you would replace that part with:

gamecore/text/MyHud.tga


Hope that helped.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
Styloo
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: France
Posted: 24th Oct 2007 12:03 Edited at: 24th Oct 2007 12:15
Thanks a lot, I test this now

EDITED : Or needs you it to place the script so that its march ?

StarGate Arena, official site ENG/FRA : http://pacific-interactive.site.voila.fr/
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 25th Oct 2007 03:11
I don't quite understand what it is you are asking. Sorry.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
Styloo
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: France
Posted: 25th Oct 2007 19:19
Okey,
Where I do put the script ( entity folder ? Script ? ) and where I use this in FPSC editor ( right clic on entity ?, Option ? )

Thanks you per advance

(sorry for my english : I'm french...)

StarGate Arena, official site ENG/FRA : http://pacific-interactive.site.voila.fr/
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Oct 2007 20:05 Edited at: 26th Oct 2007 21:04
Ah, yes. Okay here are the details:

[EDIT]
Whoops, I was under the impression that I was in a different thread. I guess that's what I get for helping so many people with scripts, lol.

Okay, for this script you're going to want to put it in a triggerzone that the player starts on top of. This triggerzone does not need to be any bigger than the little spot where the player starts. Once the player spawns in the game, this script will become permanently active, and always check for the player pressing a key.

Sorry for confusing you.
[/EDIT]


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
Styloo
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: France
Posted: 26th Oct 2007 20:31
What is the right thing for I use the hud when I presse G !
Its a script for player, not a ENEMY script or any entity..

StarGate Arena, official site ENG/FRA : http://pacific-interactive.site.voila.fr/
Styloo
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: France
Posted: 26th Oct 2007 20:58
I find the good thing, but the script is wrong... When i test the game, the hud is already here, and when i push G, i dont move...

StarGate Arena, official site ENG/FRA : http://pacific-interactive.site.voila.fr/
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Oct 2007 21:05 Edited at: 26th Oct 2007 21:07
Okay, I editted my last response to correctly show you where to put it. Again, my apologies for giving you the wrong information.

Also, if the hud is there upon loading the game, be sure that you included the "hudhide=1" part of the script I gave above.

I just now editted it, and you're right, it was wrong to begin with. But that's the price of scripting at 4:30AM


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
Styloo
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: France
Posted: 26th Oct 2007 21:28 Edited at: 26th Oct 2007 21:36
Thanks you for your rapid answer

EDITED script doesnt work !

StarGate Arena, official site ENG/FRA : http://pacific-interactive.site.voila.fr/
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 27th Oct 2007 09:29
Did you give the script the correct path to your image? Can you post the path you put into the script? That might help me debug it a little better.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

FPSC Scripting Tutorials - http://forum.thegamecreators.com/?m=forum_view&t=116527&b=23
Styloo
18
Years of Service
User Offline
Joined: 18th Feb 2006
Location: France
Posted: 27th Oct 2007 13:42 Edited at: 27th Oct 2007 13:45
myhud.dds is on gamecoretext

and the script is on scriptuser

The hud work when in push G, but when i re-push G, I don't work, it is no hidden...


Thanks you to help me

EDITED : I have find the good solution ! the script work fine, thanks you !

StarGate Arena, official site ENG/FRA : http://pacific-interactive.site.voila.fr/

Login to post a reply

Server time is: 2024-11-24 01:23:19
Your offset time is: 2024-11-24 01:23:19