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
Script Help Problem with timing script...
MissMarilynn Offline
Member

Posts: 77
Threads: 23
Joined: Oct 2011
Reputation: 1
#11
RE: Problem with timing script...

(01-10-2012, 05:07 AM)flamez3 Wrote: Replace 01_amb_darkness.ogg to 02_amb_safe.ogg.

Now go to

void intro4(string &in asTimer)
{
SetMessage("Intro", "Beginning3", 5);
AddTimer("", 6, "intro3");
}

And Add StopMusic(float afFadeTime, int alPrio);

It would look like this:

Quote:void intro4(string &in asTimer)
{
SetMessage("Intro", "Beginning3", 5);
AddTimer("", 6, "intro3");
StopMusic(6.0f, 1);
}
And at

void intro3(string &in asTimer)
{
FadeIn(2);
}

Add PlayMusic("01_amb_darkness.ogg", true,1.0f, 2.0f, 0, true);

It would look like this:

Quote:void intro3(string &in asTimer)
{
FadeIn(2);
PlayMusic("01_amb_darkness.ogg", true,1.0f, 2.0f, 0, true);
}
Hurray! Thank you so much for walking through this with me.

You don't perchance know how to add images along with the text do you? I'm looking everywhere but I can't seem to find any scripting for it. I know how to add images to the loading page but not the fade in/out...
01-10-2012, 05:35 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#12
RE: Problem with timing script...

I'm not sure you can. You would have to make a billboard with the appropriate .mat file. Then again, I'm not even sure you can set them unactive.

01-10-2012, 06:03 AM
Find
MissMarilynn Offline
Member

Posts: 77
Threads: 23
Joined: Oct 2011
Reputation: 1
#13
RE: Problem with timing script...

(01-10-2012, 06:03 AM)flamez3 Wrote: I'm not sure you can. You would have to make a billboard with the appropriate .mat file. Then again, I'm not even sure you can set them unactive.
Aaah that's alright. Thanks for all your help!
01-10-2012, 06:04 AM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#14
RE: Problem with timing script...

(01-10-2012, 06:03 AM)flamez3 Wrote: I'm not sure you can. You would have to make a billboard with the appropriate .mat file. Then again, I'm not even sure you can set them unactive.
You can set a billboard active or unactive by connecting it to a light and changing that lights color with FadeLightTo

01-10-2012, 06:15 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#15
RE: Problem with timing script...

(01-10-2012, 06:15 AM)Khyrpa Wrote:
(01-10-2012, 06:03 AM)flamez3 Wrote: I'm not sure you can. You would have to make a billboard with the appropriate .mat file. Then again, I'm not even sure you can set them unactive.
You can set a billboard active or unactive by connecting it to a light and changing that lights color with FadeLightTo
wow, thanks; great tip Big Grin


01-10-2012, 06:19 AM
Find




Users browsing this thread: 1 Guest(s)