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
  #13  
Old 10-24-2010, 01:16 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan View Post
What? Works in v5, at least for the ocean sound on Kingdoms.
Quote:
Originally Posted by Crow View Post
When using play2() or playlooped2() with coordinates, the "direction" of the sound playing doesn't update when the player moves, but stays the same all the time, from the point where the function is called. Not cool. Can't we make this dynamic?

The "problem" is that the sound doesn't update automatically when the player moves. This would ideally be the only thing needed:

PHP Code:
//#CLIENTSIDE
function onCreated()
  
playlooped2("mal_caveambience.wav"this.xthis.y1); 
Then it would continuously refresh the sound strength/direction whenever the player moves, but that's not the case. For it to work, you need to use it in a timeout and run the command over and over again:

PHP Code:
//#CLIENTSIDE
function onCreated()
  
setTimer(.05);
function 
onTimeOut()
{
  
playlooped2("mal_caveambience.wav"this.xthis.y1);
  
setTimer(.05);

__________________
Follow my work on social media post-Graal:Updated august 2025.
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 01:22 AM.


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