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 Codes for Fading To Black?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#3
RE: Script Codes for Fading To Black?

(05-04-2013, 11:37 AM)The chaser Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "Area", "Dothing", true, 1);
}

void Dothing (string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
FadeOut(1);
AddTimer("", 5, "Doelse");
}

void Doelse (string &in asTimer)
{
TeleportPlayer("PlayerStartArea_2");
}


Thanks! Is there a way so that once the screen goes black, it lights back up? I want to test it before I include the teleporting script.

(05-04-2013, 11:37 AM)The chaser Wrote: void OnStart()
{
AddEntityCollideCallback("Player", "Area", "Dothing", true, 1);
}

void Dothing (string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
FadeOut(1);
AddTimer("", 5, "Doelse");
}

void Doelse (string &in asTimer)
{
TeleportPlayer("PlayerStartArea_2");
}


Thanks! Is there a way so that once the screen goes black, it lights back up? I want to test it before I include the teleporting script.
(This post was last modified: 05-04-2013, 11:54 AM by FurtherGames.)
05-04-2013, 11:51 AM
Find


Messages In This Thread
RE: Script Codes for Fading To Black? - by FurtherGames - 05-04-2013, 11:51 AM



Users browsing this thread: 5 Guest(s)