I am still having trouble with the delay for this game. I am currently using the following code to change the picture property of an image box (delaying between each change).
I want to stop using the sleep api because it is causing problems in other sections of the game. Does anyone have any suggestions?
For i = 1 To 3
imgFrog(frogIndex) = LoadPicture(App.Path & "\" & "frogU1.gif"

imgFrog(frogIndex).Refresh
Sleep (100)
imgFrog(frogIndex) = LoadPicture(App.Path & "\" & "frogR1.gif"

imgFrog(frogIndex).Refresh
Sleep (100)
imgFrog(frogIndex) = LoadPicture(App.Path & "\" & "frogD2.gif"

imgFrog(frogIndex).Refresh
Sleep (100)
imgFrog(frogIndex) = LoadPicture(App.Path & "\" & "frogL1.gif"

imgFrog(frogIndex).Refresh
Sleep (100)
imgFrog(frogIndex) = LoadPicture(App.Path & "\" & "frogU1.gif"

imgFrog(frogIndex).Refresh
Sleep (100)
Next i