Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Fade music when start game  (Read 2962 times)

0 Members and 1 Guest are viewing this topic.

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Fade music when start game
« on: May 16, 2008, 09:38:00 PM »

Hello everybody

I have music playing in my game menu (in my scene_init.script i have this code :

if(!Game.IsMusicPlaying()) Game.PlayMusic("music\fear archive.ogg");

var WinMenu = Game.LoadWindow("interface\system\firstmenu.window");
WinMenu.GoExclusive();

i would like when i clic on the start button of my menu, stopping music in fade out while the new scene is loading
this a part of code in my firstmenu.script:

on "start"
{   
 
  Game.ChangeScene("scenes\Bureau_police\Bureau_police.scene");
  Game.UnloadObject(this);
}
actor.Active = true;



i found a fade music topic  but the command doesnt work with my script, so someone can help me ?

Thank you very much
Logged

dreamfighter

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • View Profile
Re: Fade music when start game
« Reply #1 on: May 16, 2008, 09:55:22 PM »

ok i'm very sorry i found

on "start"
{   
  Game.StopMusic("data\music\bgcmusic.wav");
Logged
 

Page created in 0.042 seconds with 24 queries.