Gephoria

Rants from a game developer, a guy, a prophet, and well a general person, i may be boring but i find fun stuff from time to time

Showing posts with label TorqueGameBuilder. Show all posts
Showing posts with label TorqueGameBuilder. Show all posts

Creating TGB/TGE Splash Screens

Start by creating a new project or editing one that you have existing.  In the game.cs file add this line of code towards the bottom:
playsplash0();

After that create your two GUI's of your splash screens, I am not going to go over creating the GUI's but I'll give you mine as an example. 

//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiFadeinBitmapCtrl(Splash0) {
canSaveDynamicFields = "0";
isContainer = "1";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "800 600";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
bitmap = "~/data/images/Splash0.jpg";
wrap = "0";
fadeinTime = "750";
waitTime = "2500";
fadeoutTime = "500";
done = "0";
};
//--- OBJECT WRITE END ---

then you are going to want to create the Splash.cs file mine was modeled off of a tutorial i did a while back, it's pretty simple and straightforward. 

// ============================================================
// Project : Flash Cards
// File : .\game\gameScripts\Splash.cs
// Copyright :
// Author : Brent Jorgenson
// Created on : Tuesday, September 15, 2009 1:35 PM
//
// Editor : TorqueDev v. 1.2.3430.42233
//
// Description :
// :
// :
// ============================================================

function playsplash0(){
canvas.setcontent(Splash0);
schedule(100,0,checksplash0);
echo("Splash 1 init");
}

function checksplash0(){
if(splash0.done)
{
playsplash1();
}
else{
schedule(100,0,checksplash0);
}
}

function playsplash1(){
canvas.setcontent(Splash1);
schedule(100,0,checksplash1);
echo("Splash 2 init");
}

function checksplash1(){
if(Splash1.done){
//startGame("MyProjectFolder/data/levels/MyLevel.t2d");
}
else{
schedule(100,0,checksplash1);
}
}

Next thing you want to do is exec these files

exec("./Splash.cs");

exec("~/gui/Splash0.gui");
exec("~/gui/Splash1.gui");

The only other things to do is add your startgame function or uncommend the one I have in the function checksplash1() put your main menu or first level there and you should be good to go, test it out and have a blast!

Other Tutorials on this topic:
http://tdn.garagegames.com/wiki/TGB/Tutorials/Multiple_Splash_Screens
http://tdn.garagegames.com/wiki/TGB/Tutorials/SplashScreen

These are like generals they cover most of the topics a lot more than one engine and have huge communities attached to them.
http://www.GameDev.net
http://www.DevMaster.net/
http://www.GamaSutra.com

Art
GameArtisans
CGSociety
Game-Artist.net
CGTextures

Engines                                   
Torque Game Engine
               Torquedev
               Torsion
               Codesampler's Tutorials
               DevJana's Tutorials


Torque Game Builder
               TDN - Torque Game Builder
               GarageGames Forum
               GarageGames Docs

XNA Game Studio
               XNA Creator's Club


Unreal Editor 2.0-3.0
               Unreal Developer Network
               BeyondUnreal
               WikiDot UT Mapping

Source Engine
               Valve Developer Forum
               3dbuzz.com Source Tutorials
               ModDB.com Source Tutorials

Warcraft World Edit
               TheHelper.net WC3 World Edit Tutorials
               WC3C.net Tutorials
               HiveWorkshop.com Forums

Later on I will take it unto myself to organize these better and make them easily accessible. I will continue to add to this list so please send me your suggestions.  that is all for now, watching Beowulf before I pass out.  Good night and Good luck!

,,,,,,,,,,,,,,,,,,,

I recently have been playing with Torque Game Builder (TGB) and Microsoft's XNA game engines, both are fun, I'm finding it easier to utilize Torque game builder probably because I've used it before though.  XNA's programming in C# seems like in the long run it could be easier to produce with. I will post both online when I complete them just for reference, and others to see if they wish, never limit the content of a  blog. 

Torque Game Builder - Breakout Tutorial
The only issue I'm having with this final result is the ball get's stuck on the wall when approaching from an acute angle as far as i can tell. Ball also get's stuck in corners easy and sometimes on unbreakable blocks. I was disappointed to see the tutorial ended but I am creating power ups and other fun features on my own now.

XNA Beginner Tutorial
I have not yet finished this tutorial but i am enjoying it non the less.  XNA and C# Programming is a new thing to me a new adventure in a sense.  I am liking the methods of programming and how well written the notes Microsoft put in the generated code. 

That is it for now I'll post another update soon. 

About this blog

I'm the only Me in the world

My photo
Male
Lakeville, MN
Bachelors of Science in Game Design and Development
BrentJorgenson.com
Gephoria @ Deviantart

If you like! Then you may vote!

Add to Technorati Favorites Video Games Blogs
Top Blogs Video Games
TopOfBlogs Blog Directory by Blog Flux


 Subscribe in a reader
View Brent Jorgenson's profile on LinkedIn

Search This Blog