Game Development Community

Begining movie/logo

by Joseph Jonathan · in Game Design and Creative Issues · 09/28/2006 (11:05 am) · 5 replies

How would i make the GUI create a movie and logo animation when you start up the program and when they are done go to the next on or the main menu?

I would realy apriciate the help

#1
10/07/2006 (11:04 am)
I need the same thing try searching from the files of starter.fps or starter.racing there the Gui is done somwhere in the code something like this:

new GuiBLABLALBAL()

JSDFJLDKSJFKSDFJ

SFDSFD
#2
10/08/2006 (7:15 am)
This is what I have:
Quote:new GuiChunkedBitmapCtrl(SplashScreen) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "./interfaces/emaga_splash";
useVariable = "0";
tile = "0";
noCursor=0;
new GuiInputCtrl(SplashScreenInputCtrl) {
profile = "GuiInputCtrlProfile";
position = "0 0";
extent = "10 10";
};
};
Inteast of, "bitmap = "./interfaces/emaga_splash";" what should i but to show an animated .gif or movie file?
#3
05/11/2007 (10:07 am)
Uhh well I think Torque supports some movie formats. Not sure but ask if so you just put the movie in there and scale it I assume.
#4
05/11/2007 (10:39 am)
Torque doesnt support gif (Im pretty sure it doesnt). Jpg, Png, & Theora for video.
#5
05/11/2007 (8:11 pm)
Quote:How would i make the GUI create a movie and logo animation when you start up the program and when they are done go to the next on or the main menu?

//Startup1Gui.gui
//This is called from startupGui.gui in place of mainMenu.gui
//and plays a theora ogg movie inside the splash screen, adds a button to the bottom to skip it.

new GuiTheoraCtrl(Startup1Gui) {
   canSaveDynamicFields = "0";
   Profile = "GuiDefaultProfile";
   HorizSizing = "right";
   VertSizing = "bottom";
   position = "0 0";
   Extent = "640 480";
   MinExtent = "8 2";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";
   theoraFile = "./Intro.ogg"; //Your theora Ogg file here
   done = "0";
   stopOnSleep = "1";
   backgroundColor = "0 0 0 255";

      new GuiBitmapButtonCtrl() {
      Profile = "GuiButtonProfile";
      HorizSizing = "relative";
      VertSizing = "relative";
      position = "463 439";
      Extent = "140 30";
      MinExtent = "8 8";
      Visible = "1";
      Command = "skipIt();";
      text = "Button";
      groupNum = "-1";
      buttonType = "PushButton";
      bitmap = "./button";  //This is your skip button
         helpTag = "0";

      new GuiMLTextCtrl() {
         Profile = "GuiMLTextNoSelectProfile";
         HorizSizing = "right";
         VertSizing = "bottom";
         position = "75 10";
         Extent = "300 19";
         MinExtent = "8 2";
         Visible = "1";
         lineSpacing = "2";
         allowColorChars = "0";
         maxChars = "-1";
         text = "<color:F6F4C4><shadowcolor:000000><shadow:1:1><font:Arial Bold:19>Skip";
            helpTag = "0";
            allowSelection = "1";
      };
   };
};
//--- OBJECT WRITE END ---

function loadStartup1()
{
   StartupGui.done = false;
   Canvas.setContent( Startup1Gui );
   schedule(100, 0, checkStartup3Done );
}
   

//-------------------------------------
function Startup1Gui::click()
{
   StartupGui.done = true;

}


//-------------------------------------
function checkStartup1Done()
{
   if (Startup1Gui.done)
   {

   	  echo ("*** Load Main Menu");
      loadMainMenu();

   }
   else
      schedule(100, 0, checkStartup1Done );
}
//My skip function sto stop the video when the player skips the splash screen

function skipIt()
{
 Startup1Gui.stop();
  loadMainMenu();
  }

That's all there is to it. At the bottom of startupGui.gui, find loadMainMenu(); and replace it with loadStartup1(); That will cause this splash screen to exec after the GG splash screen.