strangerattractor / Soundvision_PUBLIC

Max's long long journey into the unity world.
Other
12 stars 1 forks source link

If timeline plays backwards, it should stop at previous Marker #126

Closed strangerattractor closed 4 years ago

strangerattractor commented 4 years ago

With CYLVESTER we don't always play a song from Part A to Part B to Part C. If we are in Part C, we might choose to go back to Part B again. Thus I want to be able to play the timeline backwards from the current Marker to the previous Marker. In the code, this is the else case for if (nextSelectedScene_ > currentSelectedScene_)

right now though, the timeline doesn't pause at the previous marker,

chikashimiyama commented 4 years ago

@strangerattractor

In the bugfix of #124 I think I implemented the AC1.

please advise if a"PlayTimlineBackwards" function should be added to TimelineController. TimelineController should not know about your business. so it should not be there. also considering that I might add this functionality to the PD "previous" button

as you like. To sum up.

  1. when you press the previous button you play the timeline backward until you reach the previous marker but without exceeding the marker.
  2. when you press the next button you play forward until you reach the previous marker without exceeding the marker.

but I guess you can implement that by yourself