Cover by Matt Smith, Chico Queiroz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

Implementing slow motion

Since Remedy Entertainment's Max Payne, slow motion, or bullet-time, has become a popular feature in games. For example, Criterion's Burnout series has successfully explored the slow-motion effect in the racing genre. In this recipe, we will implement slow motion while the player presses down the right mouse button or the Alt key.

Getting ready

For this recipe, we will use the same prepared package as the previous recipe: BallShooterGame from the 0423_10_01 folder. We will also need a texture for a time progress bar, which is named barTexture.png and can be found in the 0423_10_02 folder.

How to do it...

To implement slow-motion, perform the following steps:

  1. Start a new Unity project and import the texture image file: barTexture.png ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required