I am posting this here, because I can think of no better place to put it. Yes, I have googled it.
In coding a battle, (playable) what would the theoretic code be for speed?
That didn't make too much sense. How about:
I want to write some code for a turn-based battle, how would I go about implementing speed? Say there are two sides (r, b) and r's speed is 50, while b's speed is 25, so the turn order would be: rrbrrbrrbrrb... In plain english (i.e., get the variable x, decrease it by 4...) what would I do?
Any help would be appreciated.
Mod Edit: Moved to Tech-related.