Now that we have an understanding of what Matinee is, let's start building our first cutscene!
Before we start working, you should have a level opened and entered the Matinee Editor. For assistance with this, check out the An introduction to Matinee recipe.
In order to create a cutscene, you need to perform the following steps:
Camera01
.When doing this, a camera is automatically created in the scene at the current position of the user camera within the editor.
At the bottom of the track, you'll notice a series of numbers separated by lines. This represents the time that has passed from the beginning of the animation. Use the mouse wheel, scrolling in and out, to zoom/rescale the timeline.
The bright red triangles at the bottom symbolize the size of the entire animation and you can click and drag them to modify its length. The green ones are used to determine which part will you see when you play in the editor.
Next, you may notice the dark red triangle at the 0.00
time marker under the Movement row in the tracks. This is known as a key frame, which is a point in time at which we want our Actor to be at a certain value. The first one is automatically created for us, and basically stands for the starting point.
2.00
second mark so that we can add a key there. Then, click on the Movement part of our Camera01 group and then press the Add Key button on the top-left of the Toolbar tab to add a key.CameraActor
selected in the Scene Outliner tab. Either way, double-click on it inside the Scene Outliner tab to zoom to its position. At this point, we can move our camera to modify its position. I will move the actor down in the Z axis, and you should notice a line moving to show the transition between the two.If you have both the editors up at the same time, you'll notice that you can move the time bar and see the transition and exactly how it is done. You can also press the Play and Loop buttons to watch it in real time. For instance, when the editor shows it at this time…
…the editor window will look similar to this:
5
.This can be nice when you know how exactly you want things to change. Play around with the key frames, adding and modifying them, until you get whatever animation you want to have.
0
, select the Director property for modification, and create a new key by clicking on Add Key in the top-left of the screen. Once there, it will ask which camera you wish to use. Select Camera01
and press Ok.You may notice that on the top-left of each group, there is a camera icon on the far right of the different groups with the DirGroup currently being selected. This shows which camera you are currently looking at in the Game viewport in the main editor. This can be nice for visualizing what you are doing.
DirGroup
. This will instantly change back to the player's camera, but we can also add in a transition by right-clicking on the key and selecting Set Transition Time and putting in 1
for the amount of time in seconds we want the transition for.3.134.103.74