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
Loading Screen help
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Loading Screen help

Okay, delete everything you currently have for load screen Tongue

To my knowledge it isn't good to have it when you're leaving the map, the below is my preference.

void OnEnter()
{
SetupLoadScreen("LoadingScreen", "LoadText", 1, "LoadScreenText.jpg");
}

Here is a direct solution to your problem (still not sure if it will work if you're setting up the load screen when maps are changing, if the below doesn't work, do the above):

void OnStart()
{
AddEntityCollideCallback("Player", "NextLevel", "ChangeMap", true, 1);
}

void LoadingScreenText ()
{
SetupLoadScreen("LoadingScreen", "LoadText", 1, "LoadScreenText.jpg");
}



void ChangeMap(string &in asParent, string &in asChild, int alState)
{
ChangeMap("Outside2.map", "StartArea_3", "", "");
LoadingScreenText();
}


You call the function "LoadingScreenText()", so when you write out the callback, it must have the same stuff that is inside the (), which in this case, is nothing.

I rate it 3 memes.
06-12-2012, 09:32 PM
Find


Messages In This Thread
Loading Screen help - by MaZiCUT - 06-12-2012, 09:24 PM
RE: Loading Screen help - by Adny - 06-12-2012, 09:32 PM
RE: Loading Screen help - by Acies - 06-12-2012, 09:32 PM
RE: Loading Screen help - by MaZiCUT - 06-12-2012, 09:58 PM



Users browsing this thread: 1 Guest(s)