TGC Codebase Backup



Intro Videos by Syncaidius

14th Mar 2005 11:56
Summary

My example of adding Videos to the start-up of your Games or programs. Im talking of the videos you get when you start a game!



Description



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    start=1
If start=1
`First Video starts here:
   Load Animation "Vid1.AVI",1
   Play Animation 1
   Sleep 11000
   Vid2=1
Endif
If Vid2=1
   Delete Animation 1
   `Your second Video starts here:
   Load Animation "vid2.AVI",2 `could be an intro!
   Play Animation 2
   Sleep 9500
   Delete Animation 2
   Vids=Finished
   cls
Endif
If Vids=Finished
   goto _gameStart
Endif

`This is where your main program starts
_GameStart:
do
Print "You Program!"
Loop