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
Music problem?
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#10
RE: Music problem?

"name" can be anything you want, it is the name of your GlobalVarInt
the line OnLeave would be:
SetGlobalVarInt("name" , 1);
The code under OnEnter and the code under OnLeave are in the same .hps yes, but the code under OnGameStart is in the Global.hps

also, that code under OnEnter is simplified and would not work, it should be
if (GetGlobalInt("name") == 0)
{
PlayMusic("Music1", true , float , float , int , true);
}
else if (GetGlobalInt("name") == 0)
{
PlayMusic("Music2", true , float , float , int , true);
}

07-07-2011, 01:41 AM
Find


Messages In This Thread
Music problem? - by Zypherzemus - 07-06-2011, 05:00 AM
RE: Music problem? - by Juby - 07-06-2011, 11:21 AM
RE: Music problem? - by Zypherzemus - 07-06-2011, 05:37 PM
RE: Music problem? - by DRedshot - 07-06-2011, 05:50 PM
RE: Music problem? - by Zypherzemus - 07-07-2011, 01:28 AM
RE: Music problem? - by Zypherzemus - 07-06-2011, 11:00 PM
RE: Music problem? - by Tanshaydar - 07-06-2011, 11:07 PM
RE: Music problem? - by DRedshot - 07-06-2011, 11:18 PM
RE: Music problem? - by Tanshaydar - 07-06-2011, 11:25 PM
RE: Music problem? - by DRedshot - 07-07-2011, 01:41 AM
RE: Music problem? - by Zypherzemus - 07-07-2011, 02:47 AM
RE: Music problem? - by DRedshot - 07-07-2011, 12:43 PM
RE: Music problem? - by Zypherzemus - 07-07-2011, 07:36 PM
RE: Music problem? - by Zypherzemus - 07-07-2011, 10:27 PM
RE: Music problem? - by DRedshot - 07-08-2011, 02:01 AM



Users browsing this thread: 1 Guest(s)