We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
timers (Read 608 times)
timers
Jan 17th, 2006, 10:16pm
 
hi... im doing a simulation game..

anyone have any ideas how to put a timer on the game. like if its 9 at night such and such will happen. Also how i can put like a user interface on the game for user interaction... like a gui kinda
Re: timers
Reply #1 - Jan 17th, 2006, 11:01pm
 
Processing has some nice simple fucntions for seeing what time it is: http://processing.org/reference/hour_.html

As for a GUI, I have done them in a coupld of games I've written. It's not the simplest of procedures though, as to make sure it's not overdrawn by any part of the game world, you have to reset the z-buffer, and possibly the camera, to be able to show the GUI.
Page Index Toggle Pages: 1