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 / Animated objective hud, well sort of. please it out and tell me what you think

Author
Message
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 9th May 2012 09:25 Edited at: 9th May 2012 10:05
So I did several searches trying to find out how to do animated huds. I wanted my player to receive a message which contained his objectives for the level. Well after several searches the only thing I really found was for animated menu's. I betting there is a way to use that script to create what I am looking for, but I didn't really feel like trying to figure it out. So I came up with this.












The player walks into a trigger zone and the hud message plays,
after completion you are able to press the O key to call up a hud display giving you the objectives(non-animated)

I am new to scripting so I am quite proud evertime I come up with one that actually does more or less what I want.
I am sure there probably was an easier way of going about this, but this is what my limited experience with scipting came up with.

So try it out and give me some feed back
edit it as you desire, it's faily simple to get the hud to read what you want.

I am thinking about creating another script that alerts the player that there is an incoming message, the player presses the accept message key and the attached script runs. However this script is long enough, I am not sure what I will do about it.


Simply place a trigger in your level and attach the script to the main.
Thanks, have fun

Attachments

Login to view attachments
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 9th May 2012 09:37 Edited at: 9th May 2012 09:38
oops double sorry
SpaceWurm
13
Years of Service
User Offline
Joined: 11th Nov 2011
Playing:
Posted: 9th May 2012 11:24
Hmmm.. I've never used fpgcrawtext. But after reading through your script and taking a look at the result I have to say it seems like it could be really usesful!

Nice work Troutflies!

Is fpgcrawtext limited to system fonts? I mean, do I have to use Verdana, Arial, Tahoma or one of the standard fonts that comes with all OSs?

Thanks

Landman

Artrift.com - Digital Art Community | MyPixelbox.net - My Creative Blog
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 9th May 2012 20:26 Edited at: 9th May 2012 20:30
Thanks Landman,

I stumbled on the fpgcrawtext thing about a week ago and liked it way better than the typical hud display. Specifically that it doesn't fadeout like a tradional hud. I originally set out to write the scipt so each letter of the message was typed out, if you notice in the first part of the script where objective is spelled out it took up a lot of lines of script with the timers and all. So I think when I kind of reorganize the script and try and streamline it a little I will just have the words blink, like the "downloading" text. to me look far more effective.

as far as I know you can change verdana to any font that you have on your pc. I have not tried anything else just went with the verdana.

I am surprised that fpgcrawtext isn't used more often seems like there are a ton of applications for it. Though it can be a little script intensive, since using it I find that the ability to tweek the script while in the map editor is far easier to do than saving your map and exiting fpsc opening your hud editor of choice etc.
It seems to work fine with tradional image huds.

Id ultimatly like to find a way to put a "mask" of some kind over the fpgcrawtext messages as they display to give a more authentic computer feel.

Thanks for the input.

Login to post a reply

Server time is: 2024-11-24 01:07:48
Your offset time is: 2024-11-24 01:07:48