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
Abihishi Offline
Junior Member

Posts: 44
Threads: 8
Joined: Feb 2016
Reputation: 0
#5
RE: Intro Problem - 02-05-2017

Ok, i make a new map for intro.
And i make 3 room with start position name Intro_0, Intro_1 and Intro_2 with 3 pictures. But when i start a game my character fall down in floor (not hight, after my Postion was be in air but i change it, but in game still i fall down on floor) and i see picture nr1, but after this i have black screen.

Weired, when i save a map and restart Editor and open my intro map i dont have my pitcures. Why?
Plane is it in eidtor but invisible and i must open material with my picture.
When i exit for a split second at the top of the bar write - Unnamed map.

In intro.hps i make

void OnStart()
{
     FadeOut(2);
     SetPlayerActive(false);
     SetSanityDrainDisabled(true);
     ShowPlayerCrossHairIcons(false);

     AddTimer("fadein", 3, "TimerIntroOutro");

     PlayMusic("search_brute.ogg", false, 1, 0, 1, true);

}

void TimerIntroOutro(string &in asTimer)
{
     if(GetLocalVarInt("Intro") < 3) {

     if(asTimer == "faidein") {
      TeleportPlayer("Intro_" + GetLocalVarInt("Intro"));
      FadeIn(1);
      AddTimer("fadeout", 4, "TimerIntoOutro");
     }
    
     if(asTimer == "fadeout") {
      FadeOut(1);
      AddTimer("fadein", 1, "TimerIntroOutro");
      AddLocalVarInt("Intro", 1);
     }
     }
     else
     {
      TeleportPlayer("Spawn");
      FadeIn(2);
      SetPlayerActive(true);
      SetSanityDrainDisabled(false);
      ShowPlayerCrossHairIcons(true);

      PlayMusic("26_paper_daniel01.ogg", false, 0.2, 0, 2, true);
     }
}

Mhm, i add
TeleportPlayer("Intro_0");

on
void OnStart()
but its still doesent work. All is in your wideo.
Even now I copied your code in website pastebin.com.
(This post was last modified: 05-02-2017, 08:35 PM by Abihishi.)
05-02-2017, 02:24 PM
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: 3 Guest(s)