Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: gamemaster468 on Sat 31/03/2012 02:35:08

Title: (solved) Playing videos in AGS
Post by: gamemaster468 on Sat 31/03/2012 02:35:08
(GASP) Two posts in one day! It's MADNESS I tell you!!!  :o XD Anyways, I have another question about playing videos in my game. For the most part, the first few scripting commands are strait forward. You type in "PlayVideo" Then the number of the video, then it asks how you want the player to skip the video. So far it looks like this. PlayVideo(1, eVideoSkipAnyKeyOrMouse, But then after that, I run into a problem. It asks for something called an "int flag". I don't understand what this means. What do I type in when it asks for an "int flag"?  :-\
Title: Re: Playing videos in AGS
Post by: TheMagician on Sat 31/03/2012 03:15:36
Please look up the manual for the PlayVideo command. There it says:

FLAGS can be one of the following:

0: the video will be played at original size, with AVI audio
1: the video will be stretched to full screen, with appropriate
  black borders to maintain its aspect ratio and AVI audio.
10: original size, with game audio continuing (AVI audio muted)
11: stretched to full screen, with game audio continuing (AVI audio muted)
Title: Re: Playing videos in AGS
Post by: gamemaster468 on Sat 31/03/2012 03:23:21
YES! It works PERFECTLLY! Thanks man. :D