Undo, step back etc.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By websterek

Hi, I’m looking for a way to add undo option to my project. My initial idea is crating packed scene for all needed nodes and revert back to original node all values. How can I do that?

Another idea is removing and replacing node using packed scene but it’s making few issue with my actual code.

Maybe someone have another idea how to achieve step back functionality?

Are you thinking about like a rewind (Prince of Persia) functionality?

Here is a video showing rewind and the author offered to make a tutorial. I was also thinking you could use a separate animation player for each node and save the state each frame and then play it backwards when you want to rewind. Trick would be temporarily disabling the physics and then initializing it again after rewind.

2D||!2D | 2018-09-05 00:45