|
-
Jul 4th, 2000, 08:59 AM
#1
Thread Starter
Frenzied Member
Okay, I know this makes a loop go for 1000 whatevers.
Code:
Dim i as integer
For i = 1 to 1000
'all my code in here
Next i
But Im making an online game (almost done too ) but I want a loop to keep send my coordinates to the other person, but I don't want to use a timer, because that defeats the purpose of using BitBlt. And I don't know how long each game is going to go on. Anyone got any ideas?
-
Jul 4th, 2000, 09:05 AM
#2
PowerPoster
You have done a game without any idea how to do that? wow 
ok, heres the idea: Make a loop that runs all the time till you exit the program. There you can make timing with GetTickCount or something and send whatever all the time. Looks like this:
Code:
'Declares
Dim Active as Boolean
'Form_Load
Active = True
While Active = True
'Game comes here ;)
DoEvents
Wend
End
'Form_Unload
Active = False
-
Jul 4th, 2000, 09:06 AM
#3
PowerPoster
(Don't forget to show the Form before running the loop )
-
Jul 4th, 2000, 09:08 AM
#4
Thread Starter
Frenzied Member
Wow! To Reply's In Under 2 Minutes!
Thanks fox, I'll give it a try.
-
Jul 4th, 2000, 09:10 AM
#5
Thread Starter
Frenzied Member
Oh boy, I must be loosing it, the answers are so easy yet I never find them . Thanks fox!
-
Jul 4th, 2000, 09:16 AM
#6
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
|