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
Intro Problem - 02-05-2017
hewiefreeman Offline
Junior Member

Posts: 7
Threads: 1
Joined: Oct 2014
Reputation: 1
#10
RE: Intro Problem - 02-05-2017

Try this from one of my stories (Please tweak it around a bit, so you aren't totally ripping it though):

void OnStart()
{
        FadeOut(0);
        MovePlayerHeadPos(0, -1.5, 0, 50, 1);
        SetPlayerActive(false);
        FadePlayerRollTo(90, 100, 100);
        AddTimer("wakeUp", 2, "wakeUp");
}

void wakeUp(string &in asTimer){
    FadeIn(6);
    AddTimer("startDream", 5, "startDream");
}

void startDream(string &in asTimer){
    FadePlayerRollTo(0, 75, 75);
    MovePlayerHeadPos(0, 0, 0, 6, 2);
    PlayGuiSound("player_climb1.ogg", 1);
    AddTimer("getUp", 2, "getUp");
}

void getUp(string &in asTimer){
    SetPlayerActive(true);
}

I would recommend bookmarking: https://wiki.frictionalgames.com/hpl2/am..._functions to look at all the functions I use and understand how I did this.
05-21-2017, 03:30 AM
Find


Messages In This Thread
Intro Problem - 02-05-2017 - by Abihishi - 05-02-2017, 01:00 PM
RE: Intro Problem - 02-05-2017 - by Mudbill - 05-02-2017, 01:05 PM
RE: Intro Problem - 02-05-2017 - by Abihishi - 05-02-2017, 01:11 PM
RE: Intro Problem - 02-05-2017 - by Mudbill - 05-02-2017, 02:00 PM
RE: Intro Problem - 02-05-2017 - by Abihishi - 05-02-2017, 02:24 PM
RE: Intro Problem - 02-05-2017 - by Mudbill - 05-02-2017, 09:47 PM
RE: Intro Problem - 02-05-2017 - by Abihishi - 05-02-2017, 10:19 PM
RE: Intro Problem - 02-05-2017 - by Mudbill - 05-02-2017, 10:31 PM
RE: Intro Problem - 02-05-2017 - by Abihishi - 05-03-2017, 06:32 AM
RE: Intro Problem - 02-05-2017 - by hewiefreeman - 05-21-2017, 03:30 AM



Users browsing this thread: 1 Guest(s)