-
Skill bar
You know those skill bars you get in 'Track and field' type games or almost any sports game for that matter, where the nearer you stop the bar to a certain line the better the result.
I'm trying to do one of those but have so far only tried using a line moved by a timer, but this way is either far too slow or the increments have to be so big that it doesn't look smooth.
Any ideas?
Cheers.
-
Try using a progress bar, or reduce the increment of the timer. By the way, what is the speed of your computer?
-
Timers are evil in games programming.
Use GetTickCount in a Do Loop.
-
Working on a P233, I've come to realise that timers are EVIL, but am new to games programming.
I'll have a go using gettickcount and let you know how i get on.
-
Timers aren't evil, Do Loop's suck all your CPU, If you want more precise timers you can Settimer and stoptimer to set a global callback function trigger by the system
-
Cheers keda, Does the settimer API still work accurately at very short intervals as this seems to be the problem i'm having with the VB timers, While the timer is active the program is doing very little so it shouldn't use too much CPU.
-
VB timers won't fire with less interval than 53ms. You can go down to 1ms with settimer i think, but that's a bit too frequent for most cases.