|
-
Nov 12th, 2000, 12:25 PM
#1
Thread Starter
Lively Member
Is there a way to allow my game to continue when the menu bar is clicked. Since my game is played over network I do not want a break.
-
Nov 12th, 2000, 04:27 PM
#2
Is the animation being drawn through a loop? If so, there shouldn't be a problem.
-
Nov 12th, 2000, 05:14 PM
#3
Thread Starter
Lively Member
THIS IS WHERE I THINK THE PROBLEM IS
'*********************************************
Public Sub manplay()
SetColorANDLocation 'Sets where player1,2 starts and there colors
Racefor
Do ' MAIN LOOP
Wait 'Slow Game down
Playerline 'DRAW PLAYER 1,2 LINES
Loop ' MAIN LOOP
End Sub
'*********************************************
Sub Wait()
If keys.AUTOS.Value = 0 Then
For slowd = 0 To Gamespeed
DoEvents
Next slowd
Else
Timern = Timer + 0.01
Do: DoEvents
Loop Until Timer > Timern
End If
End Sub
'*********************************************
Sub Playerline()
For Player = 1 To 2
pX(Player) = Int(pX(Player)) + pXd(Player)
pY(Player) = Int(pY(Player)) + pYd(Player)
WarWorms.bb.DrawWidth = Radius(Player)
WarWorms.bb.PSet (pX(Player), pY(Player)), Pcolor(Player)
Next Player
End Sub
-
Nov 12th, 2000, 05:19 PM
#4
Thread Starter
Lively Member
If the loop is a timer it works. But much to slow
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
|