So I wanted to see if any of you smart people here had any suggestions on doing something:
Say the game is a tower defense game but the different towers would shoot at different intervals ( 1 tower every .5 seconds, another tower every 1 second)..BUT I want them to be in sync with the timing right from when someone clicks start after putting the towers down.
So the complication is, this fire rate really isn't using the timing until an object gets into its path THEN starts saying ok, every .5 seconds ill shoot. But then that wont be in sync with one that gets a target in it's sight .7 seconds after the other turret does because THEN it starts saying ok every 1 second I shoot. I don't know if I'm explaining this well but I'm tryin.
So I guess the question is, how would you guys write the code to make sure the tower's are always on the same timing even when there are no targets available to shoot at?