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 Hi, its me again ;d
NotASkrub Offline
Junior Member

Posts: 19
Threads: 2
Joined: Jun 2015
Reputation: 0
#8
RE: Hi, its me again ;d

(06-19-2015, 08:03 AM)Mudbill Wrote: (From Flawless' example. PS: You missed a semi-colon by the end)

PHP Code: (Select All)
void FadeOutFunc(string &in asTimer)
{
    
FadeOut(2);
    
AddTimer("FadeInTimer"0.1f"FadeInFunc");
}

void FadeInFunc(string &in asTimer)
{
    
FadeIn(5);


@OP
This right here won't work the way you want it. It starts off going towards black, but before it manages to do anything, it starts going towards being visible again. The timer that follows FadeOut is too quick for you to notice the FadeOut. Make sure your timer starts AFTER the time of the FadeOut (unless you don't want it to be fully black).

So to fix this, you either edit the time of the FadeOut to be shorter than the timer, or edit the timer to be longer than the FadeOut. For example:

PHP Code: (Select All)
void FadeOutFunc(string &in asTimer)
{
    
FadeOut(2);
    
AddTimer("FadeInTimer"2.1f"FadeInFunc");
}

void FadeInFunc(string &in asTimer)
{
    
FadeIn(5);


Ah, I see what you mean MudbillI, I guess I misunderstood the script.. I started watching TechOFreak128 in youtube and from him I started learning how to script and make CS..
What he said was that every command(code) is followed from top to bottom, and I trough that it will not execute the next code before the ones first:
1. I have the fadeout code, and untill that is fully executed, it will not proceed to the next one (e.g the timer)..
Again, thank you for the help!
Will keep that in mind!
Expect further questions if I get stuck again ;d
06-19-2015, 09:45 AM
Find


Messages In This Thread
Hi, its me again ;d - by NotASkrub - 06-19-2015, 01:52 AM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-19-2015, 02:12 AM
RE: Hi, its me again ;d - by NotASkrub - 06-19-2015, 02:24 AM
RE: Hi, its me again ;d - by Romulator - 06-19-2015, 02:46 AM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-19-2015, 02:52 AM
RE: Hi, its me again ;d - by NotASkrub - 06-19-2015, 02:58 AM
RE: Hi, its me again ;d - by Mudbill - 06-19-2015, 08:03 AM
RE: Hi, its me again ;d - by NotASkrub - 06-19-2015, 09:45 AM
RE: Hi, its me again ;d - by NotASkrub - 06-20-2015, 01:00 PM
RE: Hi, its me again ;d - by DnALANGE - 06-20-2015, 02:02 PM
RE: Hi, its me again ;d - by NotASkrub - 06-20-2015, 02:56 PM
RE: Hi, its me again ;d - by Mudbill - 06-20-2015, 02:10 PM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-20-2015, 05:01 PM
RE: Hi, its me again ;d - by NotASkrub - 06-20-2015, 06:08 PM
RE: Hi, its me again ;d - by NotASkrub - 06-20-2015, 10:11 PM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-21-2015, 01:28 AM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 11:16 AM
RE: Hi, its me again ;d - by Romulator - 06-21-2015, 12:16 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 01:28 PM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-21-2015, 01:30 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 02:14 PM
RE: Hi, its me again ;d - by DnALANGE - 06-21-2015, 05:14 PM
RE: Hi, its me again ;d - by Mudbill - 06-21-2015, 05:22 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 06:55 PM
RE: Hi, its me again ;d - by FlawlessHappiness - 06-21-2015, 07:21 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 08:35 PM
RE: Hi, its me again ;d - by Catalyst - 06-21-2015, 08:53 PM
RE: Hi, its me again ;d - by NotASkrub - 06-21-2015, 10:59 PM



Users browsing this thread: 1 Guest(s)