Game Development Community

linking zones TGE

by Chris Ervin · in Game Design and Creative Issues · 04/22/2009 (5:42 pm) · 3 replies

okay for now i sware i wont post any more forum topics till i like go and post ablog bout my game processbut until then, could someone tell me a code or anything to help me link map to another

#1
04/22/2009 (8:34 pm)
If you look in "server/scripts/game.cs" You'll find the function:
function cycleGame()
Further down the script, you'll find what it does:
function onCyclePauseEnd()
{
   $Game::Cycling = false;

   // Just cycle through the missions for now.
   %search = $Server::MissionFileSpec;
   for (%file = findFirstFile(%search); %file !$= ""; %file = findNextFile(%search)) {
      if (%file $= $Server::MissionFile) {
         // Get the next one, back to the first if there
         // is no next.
         %file = findNextFile(%search);
         if (%file $= "")
           %file = findFirstFile(%search);
         break;
      }
   }
   loadMission(%file);
}

You can copy and rename this function and use it to "cycle" to the next game in your list after something has happened. (trigger, something clicked, score reached, etc...)
That should give you a direction to go.
#2
04/22/2009 (8:51 pm)
okay lastly where do i find the code and stuff on my thing it has afk and the 3 tutoals and tutorail base. how will i find the code
#3
04/23/2009 (5:02 pm)
Search is your friend... =P
This thread has some good info: www.garagegames.com/community/forums/viewthread/27700