Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Timer, Clock Get Time$ problems

Author
Message
tonycrew
14
Years of Service
User Offline
Joined: 8th Jan 2010
Location:
Posted: 10th Mar 2010 00:52
Just a couple of questions about timers and the get time command, i'm trying to display a timer in my game hours/mins but i either have to have backdrop on which clears all my on screen graphics, or use cls which again clears all my graphics, i there a way to do this.....?

Thanks

FPS Creator Updated 116,Vista 32Bit UpTo Date, nVidea 8500 1Gig Graphics Card, 4 Gig DDR2 Ram, Intel Duel Core 3GHZ CPU
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 10th Mar 2010 09:22
Have you set sync on and are calling sync in each main loop cycle?

tonycrew
14
Years of Service
User Offline
Joined: 8th Jan 2010
Location:
Posted: 10th Mar 2010 16:27
If i have sync on most of my game is fine apart from the 1st title screen where you input your name, everything else in loops runs fine.



But i can't have the function for the titlescreen in a loop. I have the time running here fine apart from say every 7-8 seconds the screen flashes blue.

FPS Creator Updated 116,Vista 32Bit UpTo Date, nVidea 8500 1Gig Graphics Card, 4 Gig DDR2 Ram, Intel Duel Core 3GHZ CPU
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 11th Mar 2010 16:47
http://forum.thegamecreators.com/?m=forum_view&t=99497&b=10

Click on this link and bookmark it. Timers are covered in tutorial 8.

Most of your numerous questions on this board have already been covered either in the articles there - or can be found quite easily by using the Search button.

TDK

Login to post a reply

Server time is: 2024-11-24 20:53:23
Your offset time is: 2024-11-24 20:53:23