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.
Printable View
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.
Is the animation being drawn through a loop? If so, there shouldn't be a problem.
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
If the loop is a timer it works. But much to slow