View Single Post
  #1  
Old 02-01-2007, 01:21 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Playlooped not functioning properly!

Quote:
Originally Posted by Stefan View Post
For looping wavs: call playlooped all few moments to update the position of the sound, the volume will automatically be adjusted depending on the position of the npc on the screen
I've tried this and discovered that playlooped only adjusts the volume in relation to the player one time. (when the player enters the level or the npc is created)

This was tested on both a single level and a gmap and both times it's only adjusting the volume once.

NPC Code:
//#CLIENTSIDE
function onCreated() {
setTimer(.05);
}
function onTimeout() {
playlooped("bomb.wav");
setTimer(.05);
}



This is technically supposed to make it so if the player walks away from the npc, it should get quieter... but it only sets the volume of the playlooped the first time. (same with playlooped2)
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote