TGC Codebase Backup



Video display by Anonymous Coder

20th Jul 2006 11:14
Summary

Display a video animation (intro for example)



Description

You have to create a avi or mpeg file according to the display resoulution so resize the video to 1024x768 pixels if you are using a resolution of 1024x768 pixels.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    set display mode 1024,768,32     rem set display resolution
load animation "intro.avi",1     rem load video file
play animation 1                 rem play video
wait 6000                        rem wait for 6sec (modify to fit the video duration)
delete animation 1               rem delete video to free memory