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 / Fps Creator X10: Press [Enter[ to show Hud

Author
Message
Liquid Blaze
12
Years of Service
User Offline
Joined: 3rd Aug 2012
Location:
Posted: 4th Sep 2012 11:05 Edited at: 4th Sep 2012 11:07
Hi ho

I tryed the whole day to change this script so that I must be in the near of the entity and hit the [Enter] Button to show it up, but without success



Any ideas?
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 4th Sep 2012 13:00
I do not know if it works, but give a try


Public void likeFpsc{ System.out.println("I like FPSC!" ) ;}
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24
Liquid Blaze
12
Years of Service
User Offline
Joined: 3rd Aug 2012
Location:
Posted: 5th Sep 2012 05:37
Thank you mate it worked, but it disappears after 1 second if I don't hold the {Enter} Button.


Is it possible to change the script so that if I hit {Enter} it stays shown until I hit again {Enter}?
unfamillia
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 5th Sep 2012 10:48
@Liquid Blaze,

I haven't tested it as i am at work and it's quite early in the morning.

But, i have changed your script so that as soon as the player presses <enter> the hud will show for 2.5 seconds (as long as they near it)

And, if the player presses <enter> again, it will get rid of it before the 2.5 seconds is up.

Hope it helps.





Unfamillia

[url=www.touchoffear.webs.com][/url]
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 5th Sep 2012 11:35 Edited at: 5th Sep 2012 11:37
yes of course:

If the time is too short just change etimergreater=... , remember 1000 = 1 second

Public void likeFpsc{ System.out.println("I like FPSC!" ) ;}
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24
Liquid Blaze
12
Years of Service
User Offline
Joined: 3rd Aug 2012
Location:
Posted: 5th Sep 2012 15:35
@Unfamillia Hm, always when I hit {Enter} it shows up but im then not able to get rid of it by pressing {Enter}


Hm, any ideas?
Fpsc Remaking Halo
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location:
Posted: 5th Sep 2012 19:46
Try this. This might work.

//cheers

Concept, an Original Idea. A Creation. Takes Effort & Pride.
Liquid Blaze
12
Years of Service
User Offline
Joined: 3rd Aug 2012
Location:
Posted: 6th Sep 2012 06:11
Still the same result like unfamilia ....
Fpsc Remaking Halo
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location:
Posted: 6th Sep 2012 20:15 Edited at: 6th Sep 2012 20:23
Try this now


Concept, an Original Idea. A Creation. Takes Effort & Pride.
Liquid Blaze
12
Years of Service
User Offline
Joined: 3rd Aug 2012
Location:
Posted: 7th Sep 2012 06:13
Hm, it gives me the same result
Fpsc Remaking Halo
17
Years of Service
User Offline
Joined: 4th Jun 2007
Location:
Posted: 7th Sep 2012 07:09 Edited at: 7th Sep 2012 19:44
Try that. I'm trying so hard to get this script to work, but I am reinstalling FPSC right now, so when I have it back, I will try much harder to get better results, let me know if this gets anywhere

Script 1

Script 2


Concept, an Original Idea. A Creation. Takes Effort & Pride.
Liquid Blaze
12
Years of Service
User Offline
Joined: 3rd Aug 2012
Location:
Posted: 12th Sep 2012 16:13 Edited at: 12th Sep 2012 16:14
@Fpsc Remaking Halo, Hm can you change the script so that when I near it a Hud displays and when I hit {ENTER} the first hud gets disabled and another shows?

My Plan: I want to make it possible to read books, papers etc. in game it should be a kind of rpg...


Example: I near the book the hud shall display [Press {ENTER} to read] and if I hit {ENTER} I shall be able to read the book [Another Hud]...

PS: I will add 100% Credits about you if it works
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 12th Sep 2012 21:43 Edited at: 12th Sep 2012 21:45
hey why you do not learn to script? It is easy and simple! work with this tool http://forum.thegamecreators.com/?m=forum_view&t=129738&b=23

I say this because you just ask and do nothing yourself! This is not a request board you can read in the 7 threat in this forum! http://forum.thegamecreators.com/?m=forum_view&t=126004&b=23so learn to script, without it your games are bad!

Corno

Public void likeFpsc{ System.out.println("I like FPSC!" ) ;}
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24

Login to post a reply

Server time is: 2024-11-23 19:48:20
Your offset time is: 2024-11-23 19:48:20