How do you execute multiples functions simultaneously? Answered
Got a programming question today. How would I run multiple functions/execute commands at the same time? What I'm basically getting at here relates to games. Lets say you have a game where you have 2 tanks. An enemy comes into view, they both turn and fire, but at the same time. In the code I've been used to writing, it seems that if you were to achieve them doing this, commands to turn and to fire would need to be executed at the same time. I suppose you could write a function that would govern all of the motion for the game, but that seems like it might get bulky quickly, especially if its a big game. How would you do this?
Thanks for answering!
If you answer specifically in one programming language or another thats ok, b/c I'm familiar with several! Just need something to set me on the right track here!