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


Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with sound
zecuro Offline
Member

Posts: 162
Threads: 33
Joined: Jul 2011
Reputation: 3
#1
help with sound

DOne !!!!!11
(This post was last modified: 07-18-2012, 02:06 PM by zecuro.)
07-17-2012, 07:32 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: help with sound

Probably the most vague thread I've ever read.

Are you asking how to MAKE sounds/music? Or how to implement it into the game?
07-17-2012, 07:32 PM
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#3
RE: help with sound

This is good tutorial for sound and music and all that?
http://www.youtube.com/watch?v=5rQr5YVNqI0

07-17-2012, 07:37 PM
Find
zecuro Offline
Member

Posts: 162
Threads: 33
Joined: Jul 2011
Reputation: 3
#4
RE: help with sound

(07-17-2012, 07:32 PM)Statyk Wrote: Probably the most vague thread I've ever read.

Are you asking how to MAKE sounds/music? Or how to implement it into the game?

yep sorry not really clear huh well i want to know if there a good tutorial or some documentation about sound and music like example when collide with one area we can hear a sound effect or when
we grab an item
sorry for my bad english
07-17-2012, 07:46 PM
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#5
RE: help with sound

Look for Sounds & Music section here.

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

07-17-2012, 07:48 PM
Find
zecuro Offline
Member

Posts: 162
Threads: 33
Joined: Jul 2011
Reputation: 3
#6
RE: help with sound

(07-17-2012, 07:48 PM)JMFStorm Wrote: Look for Sounds & Music section here.

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

yep pretty awesome thanks but i'm new to scripting and all so do you have advice on how to start
07-17-2012, 07:57 PM
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#7
RE: help with sound

(07-17-2012, 07:57 PM)zecuro Wrote: yep pretty awesome thanks but i'm new to scripting and all so do you have advice on how to start

The site has all the script commands for level scripts. I suggest you should just start trying them out and see what they do. If you don't know anything about how to make script to work just look for tutorials before posting thread.

07-18-2012, 08:40 AM
Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#8
RE: help with sound

(07-17-2012, 07:57 PM)zecuro Wrote:
(07-17-2012, 07:48 PM)JMFStorm Wrote: Look for Sounds & Music section here.

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

yep pretty awesome thanks but i'm new to scripting and all so do you have advice on how to start
PlayGuiSound("sound.ogg", 1);
PlaySoundAtEntity("soundname", "sound.snt", "Player", 0, false);
PlayMusic("music.ogg", true, 1, 0, 1, false);


GuiSound - typically uses .ogg sound files and is not a 3D sound

SoundAtEntity - only uses a .snt sound file, meaning this is a 3D sound that can be played on any particular entity, fading at a certain distance. SoundName can be used later in the command StopSound("name", 0);

Music - uses .ogg sound files, the second parameter (true) allows it the loop, change to false if you do not want it to loop. The last "1" there determines priority; I would use 0 for background music. This is used in the actual game many times when you use music in an event and then it cuts into the background music again. The music in the event should be priority 1, allowing the music to play over the background, then cut back.

Insanity. Static.
07-18-2012, 12:44 PM
Find




Users browsing this thread: 1 Guest(s)