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
Shadow
Ank2503 Offline
Junior Member

Posts: 21
Threads: 7
Joined: Aug 2012
Reputation: 0
#1
Information  Shadow

How to make shadow(net) active with fade screen and sound guardian_activated?

[Image: 76561198049041280.png]
(This post was last modified: 08-29-2012, 07:10 AM by Ank2503.)
08-29-2012, 07:09 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Shadow

What do you mean exactly? Do you want the screen to go black? Want the slime-net to fade in as an activation?

if you want the slime to fade in, then make it 'inactive' in the editor, and then use the function:
SetPropActiveAndFade(string& asName, bool abActive, float afFadeTime);

if you want to fade out black, and then fade in again, then you should use:

FadeOut(0);
AddTimer("FadeIn_1", 2, "FadeIn_1");

then add another timer

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


Playing sound effects are pretty easy... You should have tried it before, but here is the script:
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
Creates a sound on an entity.
asSoundName - internal name
asSoundFile - the sound to use + extension .snt
asEntity - the entity to create the sound at, can be “Player”
afFadeTime - time in seconds the sound needs to fade. Avoids enemies hearing the sound if afFadeTime is at least 0.1f
abSaveSound - determines whether a sound should “remember” its state. If true, the sound is never attached to the entity! Also note that saving should on be used on looping sounds!


Also: The shadow sound is called: guardian_activated, guardian_distant, guardian_distant1, guardian_distant2, guardian_distant3,

Trying is the first step to success.
(This post was last modified: 08-29-2012, 07:26 AM by FlawlessHappiness.)
08-29-2012, 07:24 AM
Find
Ank2503 Offline
Junior Member

Posts: 21
Threads: 7
Joined: Aug 2012
Reputation: 0
#3
RE: Shadow

ok,i try it
"What do you mean exactly? Do you want the screen to go black? Want the slime-net to fade in as an activation?" when screen go black slime-net is activating

[Image: 76561198049041280.png]
08-29-2012, 07:35 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Shadow

Then i would use something like

void FadeOut_1(string &in asParent, string &in asChild, int alState) <- this is a collide function
{
FadeOut(0);
SetEntityActive("SLIME", true);
AddTimer("FadeIn_1", 2, "FadeIn_1");
}

FadeIn_1(string &in asTimer)
{
FadeIn(2);
}

Trying is the first step to success.
08-29-2012, 07:42 AM
Find




Users browsing this thread: 1 Guest(s)