Enemy with Projectile + Bullet Time Effect

For enemies with projectiles, I would like to slow down the game like a Max Payne type bullet time when the projectile is half way between the enemy and the player.

  1. How can I create a bullet time Effect for some projectiles and not others ?
  2. Are there any assetstore assets that will help create this Effect ?

Slowing your game down isn’t as complicated as you might think. You can use Time.timeScale to do this very easily. Make a separate prefab for bullets which you want to have this effect, and calculate their distance from the player to trigger the change in timeScale. And, of course, change it back afterward.

1 Like

Thanks.

1 Like

The only GOTCHA is when Time.timeScale changes, Time.deltaTime also changes, so have to use Time.unscaledDeltaTime.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms