How can I allow the user to pause a timeline in-game?
In my game, I want particular events happening at particular timestamps in audio. To do this, I'm putting my audio file in the timeline and adding event markers to make events happen at their correct spots. However, what I want to do is to allow the player to press a key (Say the space bar), which will pause the audio as well as the timeline, and when they press pause again, it starts at the very same spot.
Say an explosion is supposed to happen at the 4-minute mark, and the player presses space around 03:55. Then the player can do whatever they want for the next 30 minutes, and when the player presses space once again, 5 seconds after the input the explosion takes place.
If this isn't clear, please let me know and I'll try to rephrase everything. Thank you so much!