Game Development Community

What's the best way to creat a cut-scene (from a coding stand point)?

by Jereis Zaatri · in iTorque 2D · 09/06/2010 (10:09 am) · 9 replies

Hello,

Does anyone know what's the best practice for creating a cut-scene? I've created a few levels for my game and now I'm in the mood to get a few cut-scenes in, but I don't want to kill time doing it the wrong way. Could someone offer some pointers on doing this? Right now I can't decide between moving moving a bunch of gui elements around or just having the scenes done frame by frame. By the way, what's faster, changing images in the level or through changing the sourceRect of a GuiBitmapCtrl? Lastly, is there just a way to play a video file and am I better off doing it this way?

#1
09/06/2010 (10:45 am)
Best practice depends. Playing video is built into the engine (Theora format). If you want to use the engine itself and game sprites, there's some programming ahead of you.

You could try to make a cut-scene editor for your particular project. It could be easy, it could end up being more complicated than Verve ;)

I think avoiding GUI elements in general as part of anything cut-scene related is a good idea. Sprites are more flexible anyway.
#2
09/06/2010 (10:53 am)
What gui element do I use to place a video in? Is Theora format a well known format. Any open source/ free video editors that use that format? Any tutorials on placing video in a game or is it fairly brain dead to do?
#3
09/06/2010 (11:46 am)
Theora encoding:
wiki.xiph.org/index.php/TheoraSoftwareEncoders

Theora playback:
tdn.garagegames.com/wiki/GUI/Video

Theora is fairly well known by now. I've even seen the logo in many games, along with its sibling formats for sound.
#4
09/06/2010 (2:55 pm)
But Theora it's compatible with iPhone?
#5
09/06/2010 (5:12 pm)
I don't see a GuiTheoraCtrl under the gui builder, does iTGB have it?
#6
09/06/2010 (7:36 pm)
Oh, right, we're in that forum :)

In that case, there should be instructions with your download on using the H.264 playback. Plain old MPEG4, that is.
#7
09/06/2010 (7:47 pm)
But what gui object is it? I don't see one for video.
#8
09/07/2010 (2:18 am)
No GUI object! You just tell it to start playing video. It's a limited device after all, so playback is supposed to be simple :)
#9
09/07/2010 (7:01 am)
and it will always be fullscreen through the MPMoviePlayer from iOS