Record and playback replays

Godot Version

Godot 4.2.2

Question

I’m making a parkour simulator for Android, where we stand still and perform acrobatic elements using the physical body, I want to make it so that from cameras placed nearby we can watch a replay of the performed trick, what ways are there to implement this?

Some possible implementations:

  • Record all user inputs and replay them from those specific angles
  • Save all player positions during “Times of interest” that you might want to replay later

The true answer is “It depends”. Every solution has some kind of pros and cons, my tip is to just try something, make it simple to change in the future/make it modular and call it a day. When you think of something better, you’ll do it the better way.

This doesn’t mean that you should just write a bad implementation. Do a PoC, try it out, and if it works and it makes sense, finish it. Don’t worry too much, don’t worry too little.

I recommend these 2 videos:
https://www.youtube.com/watch?v=WOQfopITEpw “Watch This BEFORE making Your First Indie Game”
https://www.youtube.com/watch?v=o5K0uqhxgsE “This Problem Changes Your Perspective On Game Dev”

Good luck!