Hi y’all,
I’m currently in the design phase for my next game project and was wondering how to implement a specific feature. Namely, in this new game I want the player to gradually accrue employees they can put on certain tasks to speed up progress. They’ll start out with just the main character and their grandmother, though. But, I figured that -especially in the late game- there would be periods of time where the player doesn’t have much to do but wait for the next employee to be finished. So I’d like to implement a button that skips time until the next employee becomes available, but can’t figure out how to do it.
So far I’ve got the idea to just keep track of every active task, sort them by time left whenever the signal that a new task is added is received, then calculate when the first-most task is set to be completed, skip time to that point and decrease every active task by that duration of time. Would this theoretically work? I feel like it’s missing something but I don’t have a computer available right this moment to test it out.