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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help Background music?
Author Message
kiruclanz Offline
Junior Member

Posts: 10
Threads: 5
Joined: Mar 2012
Reputation: 0
#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 Reply
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#2
RE: Background music?

PlayMusic.

The Nightmares v1.0 - Dreadful Fires WIP
04-06-2012, 02:19 AM
Find Reply
kiruclanz Offline
Junior Member

Posts: 10
Threads: 5
Joined: Mar 2012
Reputation: 0
#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 Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find Reply
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#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
Website Find Reply
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#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
Website Find Reply




Users browsing this thread: 1 Guest(s)