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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Level Editor

For adding music to notes, add this to your .hps file.
void OnStart()
{
SetEntityCallbackFunc("NOTENAME", "MusicNote");
}

void MusicNote(string &in asEntity, string &in type)
{
PlayMusic("MUSICNAME.ogg", false, 1.0f, 1.0f, 1, false);
AddTimer("", 3.0f, "EndMusic"); //Change 3.0f to the duration of the note time. I cannot do anything about this. Sorry.
}

void EndMusic(string &in asTimer)
{
StopMusic(1.0f, 1);
}

"Veni, vidi, vici."
"I came, I saw, I conquered."
04-03-2013, 06:20 AM
Find


Messages In This Thread
Level Editor - by Neelke - 04-02-2013, 08:42 PM
RE: Level Editor - by WALP - 04-02-2013, 08:45 PM
RE: Level Editor - by FlawlessHappiness - 04-02-2013, 09:37 PM
RE: Level Editor - by PutraenusAlivius - 04-03-2013, 06:20 AM



Users browsing this thread: 1 Guest(s)