Site icon Kalponic Studio

Slow Game Time Like Prince Of Persia In Unreal Engine 5

Method 1: Using Global Time Dilation (Affects Entire Game)

  1. Open Your Character or Player Blueprint:
    • Go to your character’s blueprint, typically where you handle player input and abilities.
  2. Add Slow Motion Input:
    • Add an input action to trigger slow motion. For instance, you could use a key or button press to start slow motion.
  3. Adjust Global Time Dilation:
    • In the Event Graph, drag from the input node and add the Set Global Time Dilation node.
    • Set Time Dilation to a value between 0 and 1 (e.g., 0.2 for 20% of normal speed).
    • To return to normal speed, set Time Dilation back to 1.
  4. Optionally Add Smooth Transition:
    • For a smoother transition, use Timeline or FInterp to gradually change the time dilation.

Example Blueprint Nodes

plaintextCopy code[Input Action (Slow Motion)]
    → [Set Global Time Dilation] (Time Dilation = 0.2)

[Input Action (End Slow Motion)]
    → [Set Global Time Dilation] (Time Dilation = 1)

Method 2: Using Custom Time Dilation (Affects Only Specific Actors)

If you want slow motion to apply only to certain actors (like the player character or enemies), you can use Custom Time Dilation:

  1. Select Your Character (or Actor) Blueprint:
    • In your character blueprint, you can set Custom Time Dilation to slow down only that actor.
  2. Adjust Custom Time Dilation:
    • Drag the character or actor reference, then set Custom Time Dilation to a value like 0.2 to slow down that actor.

This approach is ideal if you want some actors to remain unaffected by the time slowdown, like projectiles or environmental effects.

Advanced: Adding Visual Effects

To enhance the slow-motion effect:

Exit mobile version