Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Mr.Trant on Sun 20/04/2003 21:02:47

Title: Help with PlayVideo scripting!!
Post by: Mr.Trant on Sun 20/04/2003 21:02:47
 >:( >:(OMG i have tried to scrpit a PLayVideo thing but i cant seem to get it right!! ??? ??? ???



:-XPLEASE HELP!!!! :-X
Title: Re:Help with PlayVideo scripting!!
Post by: scotch on Sun 20/04/2003 21:12:18
OMG WTF !!! OMG

well you could start by posting the script, and have you put the video in correct folder and got the name right?
Title: Re:Help with PlayVideo scripting!!
Post by: Mr.Trant on Sun 20/04/2003 21:14:59
ya i put the video in the right folder but it wont let me save when i have...

PlayVideo (1);

... as the RUn Script thing.
Title: Re:Help with PlayVideo scripting!!
Post by: scotch on Sun 20/04/2003 21:18:56
well that's because it's wrong..

PlayVideo (string filename, int skip, int flags);

is what you need..

oh and from the manual

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)

SKIP defines how the player can skip the video:
0  player can't skip video
1  player can press ESC to skip video
2  player can press any key to skip video
3  player can press any key or click mouse to skip

Title: Re:Help with PlayVideo scripting!!
Post by: Mr.Trant on Sun 20/04/2003 21:27:33
wuts the string filename??

when i put...

PlayVideo ( 1, 3, 1);

.. it says-" Type mismatch- string with non-string"
Title: Re:Help with PlayVideo scripting!!
Post by: scotch on Sun 20/04/2003 21:30:11
a string is a sequence of letters..
so if the video is called vid52.kip you put

PlayVideo ( "vid52.kip", 3, 1);

I think anyway.. never used this function.
Title: Re:Help with PlayVideo scripting!!
Post by: Mr.Trant on Sun 20/04/2003 21:37:34
thanx, i forgot the quotes!!