wild wolf
10-31-2001, 10:04 AM
have a look at this code,
Private Sub flagtimer_Timer()
While flagcounter < 19
If flag(flagcounter).Top + flag(flagcounter).Height > 850 Then
flagcaption = 20 + flagcounter
flag(flagcounter).Caption = flagcaption
flag(flagcounter).Top = 0
End If
If flagcaption > 20 Then flagcaption = flagcaption + flagcounter
flagcounter = flagcounter + 1
Wend
End Sub
it is for a flag which runs on the UP keypressed and acts as a flag thourghout the game, the value is increased everytime the flag goes down and appears above again, the prob is it will reach 38 and then the value will again be 20, i know where the prob is but i dun know how to fix it images/icons/smile.gif, can u help me? actually this flag is used to position an opponet car on a network as my game i snetwork based.
Private Sub flagtimer_Timer()
While flagcounter < 19
If flag(flagcounter).Top + flag(flagcounter).Height > 850 Then
flagcaption = 20 + flagcounter
flag(flagcounter).Caption = flagcaption
flag(flagcounter).Top = 0
End If
If flagcaption > 20 Then flagcaption = flagcaption + flagcounter
flagcounter = flagcounter + 1
Wend
End Sub
it is for a flag which runs on the UP keypressed and acts as a flag thourghout the game, the value is increased everytime the flag goes down and appears above again, the prob is it will reach 38 and then the value will again be 20, i know where the prob is but i dun know how to fix it images/icons/smile.gif, can u help me? actually this flag is used to position an opponet car on a network as my game i snetwork based.