Game Development Community

How do I do multiple splash screens?

by Michael A Bocchi · in Torque 3D Professional · 12/28/2009 (7:59 pm) · 2 replies

I can't figure out how to incorporate multiple splash screens for the game when it first loads up? Would some one be willing to shed some light on the subject for me? This is for t3D.

#1
12/28/2009 (9:48 pm)
The Splash screens are all handled in the script for StartupGui.

In game/scripts/gui/startupGui.cs, inside the loadStartup() function:

Lines 18-21:
StartupGui.bitmap0     = "art/gui/background";
   StartupGui.logo0       = "art/gui/Torque-3D-logo";
   StartupGui.logoPos0    = "178 251";
   StartupGui.logoExtent0 = "443 139";

Just follow this system. If you want to add another splash screen, just do the following (as an example):

StartupGui.bitmap1     = "art/gui/background";
   StartupGui.logo1       = "art/gui/IAmYourFatherGames";
   StartupGui.logoPos1    = "178 251";
   StartupGui.logoExtent1 = "443 139";

bitmap# is the bitmap for the background, logo# is the logo that you wish to see, logoPos# is the "X Y" coordinates for your logo, and logoExtent# is the size of your logo (width & height).
#2
12/28/2009 (10:37 pm)
Thank you so much, that has been bugging me for awhile. Works like a charm.