Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 02/07/2003 19:32:43

Title: adding movies
Post by: on Wed 02/07/2003 19:32:43
I was wondering if there was any way possible with the AGS to put in movies... I'm making a game similar to 11th hour and 7th guest, but I'm wondering if there is an easy way to do it? If theres not, I can try to find some way to just save the segments of game surrounding the mini movie as seperate EXE's, and figure out some way to put them all together to make it transition smoothly... thanks
Title: Re:adding movies
Post by: scotch on Wed 02/07/2003 19:37:39
This is a pretty basic feature question that would have easily been found in the help file.. jus for future reference that's the best place to look for things at first.

there's a script cammand called:

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

Plays an AVI or MPG file, or any other file type supported by Media Player.
Title: Re:adding movies
Post by: on Wed 02/07/2003 20:34:07
Hah, thanks. yeah I am lazy and I have terrible ADD so I just decided to post without checking, I do that quite alot... Though its not like these forums would benefit from less threads  :-* I kid I kid
Title: Re:adding movies
Post by: TerranRich on Thu 03/07/2003 03:35:14
Heh, that's okay, just keep in mind to follow the forum rules, which state such things as having a descriptive title, not using weird text effects, ya know,  just common sense stuff. :)

Welcome, and glad to have you aboard. :)
Title: Re:adding movies
Post by: Meowster on Fri 04/07/2003 00:31:32
So as not to start another thread about movies, because I'm pretty sure the answer to this question is no... can you loop AVIs to play smoothly over and over? Without a break? Just curious.

Title: Re:adding movies
Post by: Scorpiorus on Sat 05/07/2003 10:27:08
you could place such a code:

int times = 10; // how many times to play
while (times > 0) {
PlayVideo (<filename>, <skip>, <flags>);
times--;
}

though not sure about a smoothly transition, just an idea... :P
Title: Re:adding movies
Post by: Meowster on Sat 05/07/2003 21:11:28
I love you. It works, but... there's a eversoslight gap between the loops. Oh well.
Title: Re:adding movies
Post by: Scorpiorus on Sat 05/07/2003 22:22:06
yeah, I did suspect. What if you set the room's background image to be the same as the movie's last frame? Maybe it could recoup a gap effect... :P