Game Development Reference
In-Depth Information
encoding an enormous cutscene file, but for small animations like
this it is usually more than enough. This is the one option that
I tend to change per project because I haven
t found one setting
that works across the board for every type of animation. At this
point, the encoder should be estimating the FLV at 30
36 k less
than the image sequence we created in Flash. Click OK and Start
Queue to encode the video.
To do a true comparison of the two resulting SWF files, create a
new FLA that is 200
200. Save it as VideoSequence. Import the
ImageSequence.flv file. It will bring up the Import Video window.
Select the option to Embed FLV in SWF and click Continue twice.
to your FLA on the Stage. If you test this SWF alongside the Image-
Sequence SWF, you
ll notice that indeed the video is 30 k smaller
and looks almost identical. One could argue that it is possible to
lower the JPEG quality of the PNG sequence and that SWF will
drop down to around 40 k. However, you still are left managing a
bunch of images rather than just one video file, and now the image
sequence will (usually) look worse than the video. Remember that
even though the savings in this example is small, most games will
use far more assets than just a single character; always calculate
the savings to the scale of your project to determine if using video
is worth the extra few steps.
In this chapter, we covered the following topics:
Different formats of video that Flash will accept and when to
use them
How to use the Adobe Media Encoder to create both cutscene-
style videos and alpha-channel clips
How to create a CutsceneManager that handles loading external
video files
How to use video on the timeline in place of image sequences
Search Nedrilad ::

Custom Search