|
-
Jun 26th, 2007, 07:05 PM
#1
Re: Wormipede and source(vb6, dx7, English)
the code has two timers on it, just because. The purpose of one of them is merely to update the screen, because when i had it inside the main game loop it was bogging down my system, and i have what was at the time of my making this game a top of the line system (i built myself).
Here's something DIRECTLY from my code:
Code:
Private Sub GameTimer_Timer()
Dim cl As Long
Dim stored
Dim zz As Long, yy As Long
GameTimer.Enabled = False
notice anything odd? The timer will only fire one time. I did this so the program could do things at the same time. I in fact got the idea straight from a code sample in the directx7 sdk, which does some really insane stuff with timers. One will enable the other and disable itself, then the other will do the same thing.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|