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 Product Chat / Files or Audiotapes?

Author
Message
FrankCastle0
15
Years of Service
User Offline
Joined: 15th Nov 2010
Location:
Posted: 16th Nov 2010 03:02
In my game I want to include "notes" and audiotapes laying around that the player can walk up to read and listen to and learn more about the story. Can this be done?
Norion
16
Years of Service
User Offline
Joined: 14th Jun 2010
Location: The Netherlands.
Posted: 16th Nov 2010 16:36
yes that can be done but that will need a script. and for the script you can ask MR. illusionest for help http://forum.thegamecreators.com/?m=forum_view&t=173388&b=23

Good luck


NORION.

The universe is everything around this but you are everything around the universe.

by Norion.
FrankCastle0
15
Years of Service
User Offline
Joined: 15th Nov 2010
Location:
Posted: 16th Nov 2010 16:58
Apparently he doesn't do scripting any more. Is there anyone else who knows how to do this coding?
King Of Khaos
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location: Not ALL the windows were locked...
Posted: 16th Nov 2010 21:21 Edited at: 16th Nov 2010 21:23
I'm not exactly sure how you would want the player to be able to listen to the audiotapes, but i use huds created with gimp for the notes in my game. When the player walks in a zone, the note (created in gimp) pops up, and when the player walks out of the zone, the note goes away.

I'll try to explain this best i can.

1. Create a note in gimp, and save it to a location anywhere in your "files" folder. I would suggest puuting all your notes in your "huds" folder, just to keep track of them.

2. Copy and paste this script:
into notepad. Where it says "HUDNAME.imagefile", type in the EXACT name of your hud and the EXACT path it's in. Everywhere after that where it just says "HUDNAME" (without the ".imagefile"), type in ONLY the name of your hud. Save the script into your scriptbank folder.

3. Place an object that looks like a note (or anything you would like to represent the note) in the area you want it to show up in when the player approaches it.

4. Place a trigger zone right over the note. (You might need to adjust the position of the note so it sits in the middle of the trigger zone.)

5. To the main AI of the trigger zone's properties, assign the script that displays the hud, and apply changes.

Now when the player steps into the zone around the object that represents the note, the note (hud) will display. And when the player steps out of the zone, it will disappear. Everytime the player enters the zone the hud will appear.

There are other ways to do what you're asking, this is just the method i use for my notes and memos.

Good luck...

Cheers, Jake
------------------------------------------------------------
-The Clarkson Residence- (WIP)
FrankCastle0
15
Years of Service
User Offline
Joined: 15th Nov 2010
Location:
Posted: 16th Nov 2010 22:04
Hmm, for some reason it won't let me save a note into the scriptbank, says I need to contact the administrator.
King Of Khaos
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location: Not ALL the windows were locked...
Posted: 17th Nov 2010 00:34
Lol, that has nothing to do with FPSC. That just means you're not an administrator and you need to get permission or rights to save a file there.

Cheers, Jake
------------------------------------------------------------
-The Clarkson Residence- (WIP)
FrankCastle0
15
Years of Service
User Offline
Joined: 15th Nov 2010
Location:
Posted: 17th Nov 2010 03:32
Yeah, I kinda figured.
I'm actually the administrator for this computer, there's no other log in for it... so... I dunno why it's saying that.
King Of Khaos
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location: Not ALL the windows were locked...
Posted: 17th Nov 2010 16:50
Thats weird... Someone else might have to help you figure that one out, as i have no idea why it would be saying that either.

Cheers, Jake
------------------------------------------------------------
-The Clarkson Residence- (WIP)

Login to post a reply

Server time is: 2026-07-02 10:23:38
Your offset time is: 2026-07-02 10:23:38