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.

Newcomers DBPro Corner / set sound volume

Author
Message
gsd
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: London
Posted: 21st Oct 2003 23:47
Hello

Ive been messing around trying to get a sound to suit a players movements. Firstly as the player starts to run or to walk the frequency changes according to the speed. This worked very well and i thought it would be more realistic if, when walking the sound was quiet and v.v. for running but i cant get the command set sound volume to work.

both commands are in the main loop and speed# variates between 2,4 and 8 and is determined by key input.

Is it possible to set the sound volume in the loop or should i just record 3 separate sounds?

gsd
gsd
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: London
Posted: 21st Oct 2003 23:49
i dont know why the code didnt appear. anyway....

set sound speed 1,(6000+speed#*3100))
set sound volume 1,(80+(sound#*2))

gsd

Login to post a reply

Server time is: 2024-09-21 05:45:38
Your offset time is: 2024-09-21 05:45:38