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 / Hudtext Questions

Author
Message
King Cobra
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: California
Posted: 22nd Jul 2012 04:00
Hi everyone...

I'm still creating my game. Thanks in advance for your input the last time on my work in progress. It's been a year but due to me having a new job and traveling, I haven't been able to focus that much on the game like I wanted to. So it was on the back burner.

I've put it back on the frontlines now and I'm gradually working on it.

Here's my question:

I want to put a hudtext in this game so when a player enters a trigger zone, the following picture (attached to this post) will show up. I want the picture to fade out after you read the text and press ENTER.

What script would I use for that?

And is there a script I would use so when you read the text and press enter, another image pops up as if the conversation is continuing (the small arrow at the bottom of the right will let you know that the conversation is to continue). And then once the conversation is over and you press ENTER, the last image that ends the conversation fades out.

Also, what size should this be? I designed this in Photoshop CS5 with a width of 400px and a height of 200px. Is that the right size? And how would I place it so it's at the bottom of the screen right in the center?

One last question.

While the conversation is going on, I want everything else to be frozen until the conversation is over. So, in this example, my character Aurora would enter a room, see an ugly monster, and would immediately talk. The monster would be frozen. After you press ENTER, the fight will begin.

Thank you in advance to everyone that answers. I appreciate it.

Have a great weekend.

King Cobra

Attachments

Login to view attachments
Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 22nd Jul 2012 05:21
You will need to set up you HUD and use a scancodekeypressed command.
You'll have to use etimers as well. I am answering this on my phone when I get to a computer and noone else has given you an answer. I will help you out
King Cobra
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: California
Posted: 22nd Jul 2012 05:45
@ Troutfiles

Thank you for your response. I appreciate it. I'm currently looking over Nickydude's Community Guide to seek the answer there. I may have found something, so I will test it to see if it works according to what I want.

Cheers and beers ,

King Cobra

Troutflies
13
Years of Service
User Offline
Joined: 24th Feb 2011
Location: Stuck outside my map.
Posted: 22nd Jul 2012 09:06
Ok king I am at a computer but I am a little confused as to what exactly your looking for. YOu want an image to appear with text, but at the bottom center of the screen. Sort of like an information bar? Well I am not sure if this will help. but look at this script.http://forum.thegamecreators.com/?m=forum_view&t=196813&b=23

IT works similar to what you want. You would have to tweak it to fit your needs but it does basiclly what you want. aleast it gives you a good starting point. IMO
The Storyteller 01
15
Years of Service
User Offline
Joined: 11th May 2009
Location: On a silent hill in dead space
Posted: 22nd Jul 2012 14:13 Edited at: 22nd Jul 2012 14:17
In this thread several people offer their scripts for a conversation: http://forum.thegamecreators.com/?m=forum_view&t=171847&b=23
all you have to do, is change the lines for displaying FPGRAWTEXT= with SHOWHUD=

I am afraid you still need to know about scripting yourself to inlcude this in your game.

In case you find my grammar and spelling weird ---> native German speaker ^^
King Cobra
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: California
Posted: 23rd Jul 2012 02:10
@ Storyteller:

Thanks buddy for your insight and feedback. It is definitely appreciated.

As a matter of fact, I am teaching myself scripting at this moment by reading Nickydude's Community Guide, Ched80's Unofficial Script Syntax List, and reading various scripts on here to learn how and why states, conditions, and actions do what they do.

May take a while but I'm into learning it so I can write my own scripts eventually.

@ Troutflies:

Thanks man. Already downloaded and looking into it at the moment...well, not at THIS moment lol because I'm posting here on the Forum.


Cheers and Beers ,

King Cobra

King Cobra
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: California
Posted: 23rd Jul 2012 14:34 Edited at: 23rd Jul 2012 14:39
Thank you guys for your help. I found out how to do it.

Picture is attached...I used the script to put a note in the game. My game is still a work in progress though...I still have a long way to go in this game.

But I appreciate it. Thanks once again Storyteller and Troutflies!!

Cheers and Beers! ,

King Cobra

Attachments

Login to view attachments
ivanfv1989
12
Years of Service
User Offline
Joined: 30th Jun 2012
Location:
Posted: 26th Jul 2012 12:24
Hi,

I was looking for something similar to your post, did you solved the problem? if so, could you post the script you used?
thanks
cheers
King Cobra
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: California
Posted: 28th Jul 2012 10:49
Hi ivanfv1989,

Sure thing buddy. Here's what I did.

1) I created a texthud in Photoshop (you can use Gimp, Paint, or whatever, but I use Photoshop). Made it 400x200.

2) Put whatever text you want in your hud you're creating in Photoshop.

3) Save it as a .png. For example, we'll call it imagetexthud.png

4) Now, put that image hud in this folder:

languagebank/english/gamecore/text/ (at this point, you can create a new folder if you want. I did.)

5) Set a trigger zone on your map where you want the imagetexthud.png to appear. Set the main AI to this script:



Be sure to change all the IMAGETEXTHUD names in the script to the name of your particular file you saved.

6) Test your game. At this point it should work. Here is a screenshot of one I did just so you can see how it looks.

(Picture Attached)

If you have any questions, please feel free to ask. I'm still new at this, but I learned a lot from reading Nickydude's Official FPSC Community Guide....I'm trying to learn how to script myself.

Cheers and beers ,

King Cobra

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-23 21:57:12
Your offset time is: 2024-11-23 21:57:12