Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Music Fade In/Out  (Read 3155 times)

0 Members and 1 Guest are viewing this topic.

HeSh

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • View Profile
Music Fade In/Out
« on: August 25, 2004, 05:29:14 PM »

Hi. I am writing scripts for Music Fade In and Fade Out (only crossfade is supported in WME).

So (for fadeout), i decrease volume and then have Sleep(x);
However sleep suspends script, and i want that Music Fade doesn't effect the rest of the code.

For example. The first thing when you enter one scene is that someone says something. But in the meentime music should fadein.

if I write:
Code: [Select]
Character.Talk("Something");
PlayFadeInMusic(...);
it will start to play after the character finnished talking. and here
Code: [Select]
PlayFadeInMusic(...);
Character.Talk("Something");
he will start talking after the fade in.

Is there a way to avoid this? To, like... start PlayFadeInMusic in seperate thread. :)

Thanx.

BTW.... i'm getting more and more used to working in WME... i must say you have done a great job. Keep up the good work.  ::thumbup ::thumbup ::thumbup
____________________
HeSh....  (O0)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Music Fade In/Out
« Reply #1 on: August 25, 2004, 05:35:46 PM »

Is there a way to avoid this? To, like... start PlayFadeInMusic in seperate thread. :)

You'll have to put the fading code to a separate script file and run it using AttachScript. Then it will run as a separate thread.


BTW.... i'm getting more and more used to working in WME... i must say you have done a great job. Keep up the good work.  ::thumbup ::thumbup ::thumbup

Thanks, I'll do my best :)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

HeSh

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 17
    • View Profile
Re: Music Fade In/Out
« Reply #2 on: August 25, 2004, 06:29:48 PM »

Great. Thanx.
Logged
 

Page created in 0.028 seconds with 23 queries.