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 Fadein ? or Wake up
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#1
Sad  Fadein ? or Wake up

Hello evrybody! this is my second post (im so anoying xD)
But i need help with some script
I think evrybody of you play New Game in Amnesia and you come to start that far Big Grin
Yeah im talking about start he is moving through doors you can't move Player or do anything and there is voice and text
No no don't worry i don't need that much Big Grin
I need just to woke up a little shake and stand up then 1 text like
"What happened?"
So if can anyone do this IM NOOB in script Cool
If you do it without text or with the text it's same to me just to shake on floor then stop shaking stand up and you can controll player if understand me maaan

Sorry for my bad English Blush
Second post! we going good.

(This post was last modified: 03-08-2014, 02:42 PM by Straxedix.)
03-08-2014, 01:52 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Fadein ? or Wake up

Use WakeUp, FadeIn is basically just the screen fading to white.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-08-2014, 01:53 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#3
RE: Fadein ? or Wake up

Can make script to paste it in my .hps file i say IM NOOB in script xD

03-08-2014, 01:54 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Fadein ? or Wake up

PHP Code: (Select All)
void wakeUp () {
    
FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    
FadeIn(20);      // Amount of seconds the fade in takes
    
FadeImageTrailTo(22);
    
FadeSepiaColorTo(1004);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50220220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.152);
    
SetPlayerCrouching(true);              // Simulates being on the ground
    
AddTimer("trig1"11.0f"beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
    
ChangePlayerStateToNormal();
    
SetPlayerActive(true);
    
FadePlayerRollTo(03333);        // Change all settings to defaults
    
FadeRadialBlurTo(0.01);
    
FadeSepiaColorTo(04);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);


Put the text "wakeUp();" in OnStart without the quotation marks.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-08-2014, 01:59 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#5
RE: Fadein ? or Wake up

So it's need to be like this ???

void OnStart()
void wakeUp () {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

03-08-2014, 02:03 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: Fadein ? or Wake up

Nope.

PHP Code: (Select All)
void OnStart()
{
wakeUp();
}

void wakeUp () {
    
FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    
FadeIn(20);      // Amount of seconds the fade in takes
    
FadeImageTrailTo(22);
    
FadeSepiaColorTo(1004);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50220220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.152);
    
SetPlayerCrouching(true);              // Simulates being on the ground
    
AddTimer("trig1"11.0f"beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
    
ChangePlayerStateToNormal();
    
SetPlayerActive(true);
    
FadePlayerRollTo(03333);        // Change all settings to defaults
    
FadeRadialBlurTo(0.01);
    
FadeSepiaColorTo(04);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);


"Veni, vidi, vici."
"I came, I saw, I conquered."
03-08-2014, 02:04 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#7
RE: Fadein ? or Wake up

Yeah so can you make the white text while he is down and WHEN HE STAND UP it comes "What happened?"
That's my last wish Big Grin

03-08-2014, 02:08 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
RE: Fadein ? or Wake up

(03-08-2014, 02:08 PM)Straxedix Wrote: Yeah so can you make the white text while he is down and WHEN HE STAND UP it comes "What happened?"
That's my last wish Big Grin

I can, it's quite simple, but I'm definitely NOT gonna do that. Insert this to the script when he wakes up.
PHP Code: (Select All)
SetMessage(stringasTextCategorystringasTextEntryfloat afTime); 

asTextCategory - Category of the text
asTextEntry - Entry of the text. Entry MUST BE in the Category earlier
afTime - How long the message will appear (in seconds)

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-08-2014, 02:13 PM by PutraenusAlivius.)
03-08-2014, 02:13 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#9
RE: Fadein ? or Wake up

Ok but did neeed something to go in .lang file ?
Or this:SetMessage(string& asTextCategory, string& asTextEntry, float afTime); go to .lang file or .hps file
you confused me a little now Sad

03-08-2014, 02:17 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#10
RE: Fadein ? or Wake up

(03-08-2014, 02:17 PM)Straxedix Wrote: Ok but did neeed something to go in .lang file ?
Or this:SetMessage(string& asTextCategory, string& asTextEntry, float afTime); go to .lang file or .hps file
you confused me a little now Sad

The SetMessage is on the HPS file, whilst the Category and Entry is at the .lang.

Please note that the lang and the HPS doesn't have the same format and thus if you copy stuff from the HPS to the Lang or vice versa you cannot do it.

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-08-2014, 02:20 PM
Find




Users browsing this thread: 1 Guest(s)