Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: zordork on Wed 30/06/2004 18:33:33

Title: how do i how my mpg
Post by: zordork on Wed 30/06/2004 18:33:33
I have made an intro film for my game, and named it intro.mpg, i know the command to run this is "playvideo (intro.mpg,1,1): but my question is were do i put this command ???
Title: Re: how do i how my mpg
Post by: Mr Flibble on Wed 30/06/2004 18:36:56
Where ever you want it to happen.
For example, if you wanted to display it in room 1, open up that room and place it in the "Char enters screen after fade in" part.

If you want it as an intro, which I think you do, put it in the room your game starts in, or even better, a new room, then when the movie is over, put in a new room command to go to the actual game start.

Does that make sense?
Title: Re: how do i how my mpg
Post by: zordork on Wed 30/06/2004 18:48:44
I tried that i want a room called intro so i have changed character start to 0 and tried to creat a new room i whent to room editor settings and clicked on edit script and typed in this script:

// room script file
PlayVideo ("intro.mpg", 1, 1);
NewRoom (1);

and get the following message when i try to save the room:

There was an error compiling your script. the problem was:
In: `Main Script`
Error (line 2); parse error: unexpected `PlayVideo`

am i missing somthing ???
Title: Re: how do i how my mpg
Post by: Proskrito on Wed 30/06/2004 18:57:24
i think you should place that in the 'character enters screen after fadein' interaction of that room
Title: Re: how do i how my mpg
Post by: zordork on Wed 30/06/2004 19:06:03
Thanks i have got it working now
Title: Re: how do i how my mpg
Post by: Phemar on Wed 30/06/2004 19:14:56

zordork - Is that Zor Dork, as in Zor is a dork?

hehe...
Title: Re: how do i how my mpg
Post by: TerranRich on Thu 01/07/2004 03:24:44
This is in the BFAQ. http://www.rain-day.com/harbinger/faq/#coding03

Perhaps I should re-write the question?
Title: Re: how do i how my mpg
Post by: zordork on Thu 01/07/2004 20:28:56
No my name is zordork, i am suprissed you off not heard of this mighty wizard, a character I created some 20 years ago for dungeons and dragons, this character has evolved in those years, and is well renowned in the DnD, RPG and adventure circles.