The previous recipe explored the possibilities of using MotionPaths
to move objects around. One step up from that and a way to organize many events in a sequence is cinematics. It can be used both to create in-game scripted events and advanced cutscenes. The power of a well-scripted in-game event should not be underestimated but neither should the time it takes to get one right.
In this recipe, we'll explore the possibilities of the Cinematics
system by creating a cutscene using content that we have created before.
Some basic knowledge of MotionPaths
and MotionEvents
is required. Checking out the Performing complex movements with MotionPath recipe should provide enough information to get started. A new class that is introduced is the Cinematic
class. This works as a sequencer or manager of many events firing them at set times. The events don't just have to be MotionEvents
but could be AnimationEvents
dealing with skeleton-based animations, SoundEvents...