Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:07 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.