Login | Register

Show cutscenes

September 15, 2006, 19:54 by Calle
[loading]
-->
<b>Question:</b> "Hi, GMC!

Does anyone know how I can load a video (.avi) from the file which the game is in? Actually I want it to load it from a sub-folder within that folder!

Regards
Toenail (a.k.a. Mindtrick Gaming©"

<b>Answer:</b> show_video(fname,full,loop) ... is a good function for displaying cutscenes. From the manual I quote: " Shows a video splash screen. fname is the name of the video file (.avi,.mpg). You must put this file in the folder of the game yourself. full indicates whether to show it in full screen mode. loop indicates whether to loop the video.". Fname could also be the name combined with the path, although as the path automatically is set to start in the game folder you don't need the entire path. This'll be enough:

show_video("subfolder/fname",full,loop);

Suggestively set full to true and loop to false, if it is a cutscene. And maybe in the create event of the level room? It is a pop-up function so other things will automatically be paused.

Comments

Loading comments... [loading]
.
Users logged in:

game maker articles, game maker examples, game maker tutorials, gmtutorials, game maker questions and answers, game maker crash course, how to create games