Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Rewinding time

A topic by MeepForever created Aug 06, 2020 Views: 152 Replies: 2
Viewing posts 1 to 2

I don't know how to rewind time in Unity. Any help on how?

Submitted (1 edit)

There is no magical method to rewind time in unity. You need to do it yourself.

Little hint : every x amount of time, add the current position of each object you want to rewind in their own specific "previousPos" collection (i.e a list, or even better, a stack), then gradually move them back to their previous positions when you want to "rewind" time.  Don't make the collections infinite though, make it only store the last 20 for example.

(1 edit)

The world is procedure-generated though

Edit: I think I have a way to work around it