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
How to make an intro?
goodcap Offline
Member

Posts: 193
Threads: 112
Joined: Jun 2012
Reputation: 3
#4
RE: How to make an intro?

(11-29-2013, 01:52 PM)JustAnotherPlayer Wrote: Here's your script. The Voice must have the Background Music added on it's .ogg file. If I recall correctly.

PHP Code: (Select All)
void OnStart()
{
FadeOut(0);
AddTimer("Opening"5.0f"OpeningIntro"); //5.0f is how long the voice will start
}

void OpeningIntro(string &in asTimer)
{
AddEffectVoice("VoiceFile.ogg""EffectToPlay""TextCategory""TextEntry"true"TheEntityWhereTheSoundOriginates"110);


Okay, everything works except for the fade in. The game starts out with a black screen and the voice starts. that works, but after the voice the screen continue to be black. What did I forget?

void OnStart()
{
FadeOut(0);
AddTimer("Opening", 5.0f, "OpeningIntro"); //5.0f is how long the voice will start
}

void OpeningIntro(string &in asTimer)
{
AddEffectVoice("record_music.ogg", "EffectToPlay", "TextCategory", "TextEntry", true, "TheEntityWhereTheSoundOriginates", 1, 10);
}
(This post was last modified: 11-30-2013, 05:50 PM by goodcap.)
11-30-2013, 05:49 PM
Find


Messages In This Thread
How to make an intro? - by goodcap - 11-29-2013, 12:40 PM
RE: How to make an intro? - by RaideX - 11-29-2013, 01:29 PM
RE: How to make an intro? - by PutraenusAlivius - 11-29-2013, 01:52 PM
RE: How to make an intro? - by goodcap - 11-30-2013, 05:49 PM
RE: How to make an intro? - by RaideX - 11-30-2013, 08:01 PM
RE: How to make an intro? - by goodcap - 12-01-2013, 12:32 AM
RE: How to make an intro? - by RaideX - 12-01-2013, 10:50 AM



Users browsing this thread: 1 Guest(s)