How do I
Rewind time with VHS Rewind
A VHS Rewind step plays the picture of the last one and a half seconds backwards; Pause Game stops the game while it plays, and moving the player back is your own code, run from the moment's On Played.
You want
The player presses a rewind power, the screen plays the last moments backwards like a tape, and the player is back where they stood a second and a half ago.
VHS Rewind replays only the picture. Nothing in the game moves back, so putting the player where they were is a job for your own script.
Steps
- Add Add Component > Pass Forge > Moment to the player or a manager, and set Play On to Script Or Event.
- Press Add Step and pick VHS Rewind. Or pick the Rewind or VHS Rewind ready made moment in Preset.
- Set Duration, the seconds the rewind takes to play.
- Keep Pause Game on. It stops the game while the picture rewinds, so the player cannot move unseen, and the game carries on from where it was.
- Keep the moment enabled. It records the picture while it is enabled, as sixteen small pictures, about 15 MB at 1080p.
- Add your own script to On Played, to move the player back, as in the example below.
- Play the moment from your rewind key or button with Play.

What you should see
The screen plays backwards with a tape rewind look, the game stands still meanwhile, and your On Played code puts the player back.
If it does not work
- The player stays where they are. That is expected: the step never moves anything. Call your own code from On Played.
- The player moves during the rewind. Pause Game is off.
- The rewind shows nothing. The moment records only while it is enabled, so it has nothing to play in the first moments after it is switched on. Screen effects also need Tools > Pass Forge > Set Up Effects and Post Processing on the camera.
- It does nothing in the Moment's Preview. The VHS Rewind step waits for Play Mode; the inspector names the steps the preview leaves out.
From a script
using PassForge.Effects;
using UnityEngine;
// Moves the player back when the moment's VHS Rewind step plays.
public class RewindPlayer : MonoBehaviour
{
[SerializeField] PassForgeMoment m_Rewind; // with a VHS Rewind step
[SerializeField] CharacterController m_Player;
[SerializeField] float m_Seconds = 1.5f;
const float k_Every = 0.05f;
readonly Vector3[] m_Trail = new Vector3[64]; // a ring that never grows
int m_Newest = -1;
int m_Count;
float m_Next;
void OnEnable() => m_Rewind.onPlayed.AddListener(MoveBack);
void OnDisable() => m_Rewind.onPlayed.RemoveListener(MoveBack);
void Update()
{
if (Time.time < m_Next)
return;
m_Next = Time.time + k_Every;
m_Newest = (m_Newest + 1) % m_Trail.Length;
m_Trail[m_Newest] = m_Player.transform.position;
m_Count = Mathf.Min(m_Count + 1, m_Trail.Length);
}
void MoveBack()
{
if (m_Count == 0)
return;
int back = Mathf.Min(Mathf.RoundToInt(m_Seconds / k_Every), m_Count - 1);
int index = (m_Newest - back + m_Trail.Length) % m_Trail.Length;
// A Character Controller puts its object back unless it is off while the object moves.
m_Player.enabled = false;
m_Player.transform.position = m_Trail[index];
m_Player.enabled = true;
m_Count = 0;
}
}
Without a moment, PassForgeVhsRewind.recording = true keeps the last seconds of the picture, PassForgeVhsRewind.Rewind(1.5f) plays them backwards, and PassForgeVhsRewind.isRewinding says whether one is playing.