Having Trouble With Video Sequences

Started by darkflame46, Fri 16/05/2003 23:11:58

Previous topic - Next topic

darkflame46

I want to make full-screen, cinematic, movie-like cutscenes, but I can't figure out how to do it.

Jimi

Well, AGS wasn't really designed for that sort of thing, although, you could make the movie as an avi file, then import it into the game.

scotch

Well AGS was designed for having video cuscenes, not whole games based on video though..
Just make your AVI file, (any kind of video file that will play in Windows media player) put it in your game directory, rename it to whatever you want to call it like filename.vid and use the PlayVideo script command:

Taken from the manual mutimedia section which you could have easily found yourself :P

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

Plays an AVI or MPG file, or any other file type supported by Media Player.
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


Scummbuddy

Jimi, yes it is designed to do that.  They are called Cutscenes.

Check out 'startcutscene'
'endcutscene'
'movecharacter'

for starters

read through the manual. there are a tons of functions you could call that will give you different things and make your cutscene even better.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SMF spam blocked by CleanTalk