Skip to content

Matthew-J-Spencer/Timetrial-Ghosts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Timetrial-Ghost

Time trial ghosts for any kind of speed running game. I'll be working on a feature rich version on my Patreon

Instructions

Example

You can open the demo scene for a quick example. You'll need to drop in some kind of character. You can use my 2D Controller if you'd like.

Step by step

Create an instance of the ReplaySystem:

private ReplaySystem _system;
private void Awake() => _system = new ReplaySystem(this);

To begin recording:

_system.StartRun(_recordTarget, _captureEveryNFrames);

To stop recording:

_system.FinishRun();

To play a recording:

_system.PlayRecording(RecordingType.Best, Instantiate(_ghostPrefab)); // The ghost should be a very basic prefab without colliders or rigidbodies. See the demo scene for an example.

Leave a ⭐ if you found it helpful!

About

Time trial ghosts for any kind of speed running game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages