Hi, i would like to know how i could make a ghost of an object for a time trial game. I read on this website that i need to sample the position of my object then save it in a array and load it back on another object? i don’t understand how i could do this, i am not to familiar with data storage and saving. BTW im using JavaScript. Thank a lot.
- Time Trial & Ghosting - Questions & Answers - Unity Discussions
- http://forum.unity3d.com/threads/42661-Save-replays-in-unity.
You read correctly. As your character goes through your level, you’ll want to periodically save it’s state (position/rotation/animation/etc) to some sort of array or list and then build a system to translate that list/array back to movement at a later time.
If you’re not familiar with data storage and whatnot, start reading up on the different types of tools available to you. This wiki entry has helped me immensely as has the MSDN stuff on the .NET framework.