Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: dbzking on Tue 16/10/2007 11:52:29

Title: how do i put a moive in my games
Post by: dbzking on Tue 16/10/2007 11:52:29
how do i put a movie in my games i do not how to i have tryed and treyd but nothing
Title: Re: how do i put a moive in my games
Post by: Ashen on Tue 16/10/2007 12:19:37
What exactly have you tried? Playing a video in AGS should be easy - just copy the file to your 'Compiled' folder, and use PlayVideo (http://www.adventuregamestudio.co.uk/manual/PlayVideo.htm) when you want it to run. (It's possible to run Flc animations from the Interaction Editor, with 'Game - play flic animation', but not videos - them, you have to use code for).
If that's one of the things you've tried, and it didn't work, we'll need a little more information - what's the name and filetype of the video, where exactly are you starting it, what happens (or does't happen), do you get an error message (game crashes, or on a popup when you exit), does the video play OK out of AGS, etc...
Title: Re: how do i put a moive in my games
Post by: Dualnames on Tue 16/10/2007 21:13:34
Quite easy. just add the video to the compiled folder of your game and add the line
PlayVideo("nameofvideo.wmv",1,1);

1 stands for audio from video and full size and 1 stands for video can be skipped by ESC key.