GLOGIC 20 wrote:
> Hey Thomas
> Yeah i thought of that aswel of course after i had solved it the other way. 
> i dont make life easy for myself
> thanks
> gav

Another method, and one that I like better - after thinking on it - 
would be to use a global state engine.  Then you have just one timer but 
various functions act differently based on the current state of the 
game.  So, if the main menu is showing, you might show asteroids moving 
around and maybe simulate combat in the background.  You would call this 
the "main menu" state.  The simulated combat would be a function named 
SimulateCombat() and it would only do its thing IF the current state is 
the "main menu" state.  You wouldn't want it to execute while actual 
combat was taking place.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* VerifyMyPC 2.5
Change tracking and management tool.
Reduce tech. support times from 2 hours to 5 minutes.

http://www.CubicleSoft.com/VerifyMyPC/

Reply via email to