Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help Background music?
Author Message
kiruclanz Offline
Junior Member

Posts: 10
Joined: Mar 2012
Reputation: 0
Post: #1
Background music?

Anyone know how to put in background music into a level of a custom story once you spawn? I'm new at this so don't just give me the line of code tell me where I'm supposed to put it and stuff lol Tongue
04-06-2012 02:16 AM
Find all posts by this user Quote this message in a reply
Strembitsky Offline
Member

Posts: 246
Joined: Feb 2012
Reputation: 3
Post: #2
RE: Background music?

PlayMusic.

The Nightmares v1.0 - Dreadful Fires WIP
04-06-2012 02:19 AM
Find all posts by this user Quote this message in a reply
kiruclanz Offline
Junior Member

Posts: 10
Joined: Mar 2012
Reputation: 0
Post: #3
RE: Background music?

(04-06-2012 02:19 AM)Strembitsky Wrote:  PlayMusic.
How do i make it specify which file?
04-06-2012 02:29 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #4
RE: Background music?

(04-06-2012 02:29 AM)kiruclanz Wrote:  How do i make it specify which file?

http://wiki.frictionalgames.com/hpl2/amn...unds_music

Tutorials: From Noob to Pro
04-06-2012 02:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
JetlinerX Offline
Senior Member

Posts: 599
Joined: Jun 2011
Reputation: 19
Post: #5
RE: Background music?

My best help:


PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

asMusicFile - the music to play + extension .ogg (MUST BE IN QUOTES)


abLoop - determines whether a music track should loop (True - Yes, False - No)


afVolume - volume of the music (No idea, I usually set mine to 100)


afFadeTime - time in seconds until music reaches full volume (Lower number, faster fade in)


alPrio - priority of the music. only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

(This post was last modified: 04-06-2012 04:23 AM by JetlinerX.)
04-06-2012 04:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #6
RE: Background music?

(04-06-2012 02:16 AM)kiruclanz Wrote:  Anyone know how to put in background music into a level of a custom story once you spawn? I'm new at this so don't just give me the line of code tell me where I'm supposed to put it and stuff lol Tongue
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
04-06-2012 03:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)