Path: chuka.playstation.co.uk!news From: bv163 Newsgroups: scee.yaroze.programming.libraries Subject: Timers.. Date: Thu, 04 Jun 1998 15:28:28 +0100 Organization: City University Lines: 57 Message-ID: <3576AF0C.56F0@city.ac.uk> NNTP-Posting-Host: tongham.city.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (WinNT; U) I still reckon that using the VSync Method is better but a bit more complicated.. You need to use a structure seeing as that the Vsync will not work with normal variables. EG: typedef struct { int frames; int seconds; int minutes; int ntscchek; } GAMECLOCK; the GAMECLOCK variable HAS to be global. GAMECLOCK AGClock; have a function called NTSCCheck which does this: void NTSCCheck() { AGClock.ntscchek = 50; if (GetVideoMode() == MODE_NTSC) AGClock.ntscchek = 60; } then in the actual call back function. use this: void GameTimer() { AGClock.frames ++; if (AGClock.frames > 50 + AGClock.ntsccheck) { AGClock.frames = 0; /* in this section here you do what needs to be done in one second for example increase the second count by 1 */ } } I hope this helps. The explanations are kind of odd, but if you get confused or if there are any problems with this ring me on 0958 660 653 [UK number] and ask for Aaron. P.S: How do you access and write to a memory card and how do you change the texture on a model in real time??? Are there any London based Yaroze Programmers who would like to get together and try and program a complete game. If so contact me on 0958 660 653 or 0181 960 9880 [Ask for Aaron].