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 So many errors
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#10
RE: So many errors

Ok so if you don't know already, 'float' is a decimal number, like 2.5, 424.6485 etc, where an integer (int) can only be a whole number like 2, 45 etc. Floats can hold whole numbers, but integers cannot hold decimal values

FadeOut fades the screen out in the specified time, the float value is seconds, so just think of it as how many seconds until the screen is fully black, then FadeIn is how many seconds until the screen is fully back to normal.
One way these could be used..

void OnStart()
{
    FadeOut(0);
    FadeIn(3);
}

Fade out in 0 seconds, meaning as soon as the game loads the screen is black, then fade in for 3 seconds. I found this useful if you want to position the player for when the game starts, you can force crouch, move their head etc without them noticing.

02-12-2013, 06:14 PM
Find


Messages In This Thread
So many errors - by CarnivorousJelly - 02-10-2013, 10:43 PM
RE: So many errors - by FlawlessHappiness - 02-10-2013, 11:13 PM
RE: So many errors - by CarnivorousJelly - 02-11-2013, 12:54 AM
RE: So many errors - by FlawlessHappiness - 02-11-2013, 07:48 AM
RE: So many errors - by CarnivorousJelly - 02-11-2013, 07:52 PM
RE: So many errors - by Adrianis - 02-11-2013, 08:55 PM
RE: So many errors - by CarnivorousJelly - 02-12-2013, 06:45 AM
RE: So many errors - by Adrianis - 02-11-2013, 11:22 AM
RE: So many errors - by FlawlessHappiness - 02-11-2013, 08:36 PM
RE: So many errors - by Adrianis - 02-12-2013, 06:14 PM
RE: So many errors - by CarnivorousJelly - 02-13-2013, 12:54 AM
RE: So many errors - by CarnivorousJelly - 02-14-2013, 05:23 AM
RE: So many errors - by TheGreatCthulhu - 02-14-2013, 01:23 PM



Users browsing this thread: 1 Guest(s)