Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help - Play Music when I touch an object
iLucian Offline
Junior Member

Posts: 22
Threads: 8
Joined: Jun 2013
Reputation: 0
#15
RE: Help - Play Music when I touch an object

(07-12-2013, 12:45 PM)The chaser Wrote: Oh, I see. Then, do this:

void Touch(string &in asEntity)



{

PlayMusic("music.ogg", false, 1, 0.1, 1, false);

AddTimer("", 7, "Replay");

}

void Replay (string &in asTimer)
{
PlayMusic("yourlevelmusic.ogg", true, 1, 1, 1, true);
}

That will make the music play, and, in 7 seconds, it will resume your level song. I think this should fix you error now Wink

thanks for your help! Everything works fine now! thank you Big Grin

Wherever there is Light, Darkness has already gotten there first.
07-13-2013, 04:01 PM
Find


Messages In This Thread
RE: Help - Play Music when I touch an object - by iLucian - 07-13-2013, 04:01 PM



Users browsing this thread: 1 Guest(s)