![]() |
|
I need a timer - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Game Programming Fundamentals (/forum-7.html) +--- Thread: I need a timer (/thread-2455.html) |
I need a timer - Caveman - Aug 17, 2008 06:02 AM Hello there, I need a timer so I can calculate the position of a particle every 20ms or so, what do you guys use for this? I need a timer - ThemsAllTook - Aug 17, 2008 07:11 AM Depends on the API you're using. For example, if you're in Cocoa, you'll likely want to use NSTimer. This also may be of interest: http://www.sacredsoftware.net/tutorials/Animation/TimeBasedAnimation.xhtml I need a timer - Caveman - Aug 17, 2008 07:38 AM Oh yes I forgot, I'm using Cocoa EDIT: thanks, problem solved with NSTimer
|