ManuGarcia
Member
How can I pause (for 100 milliseconds, for example) to "simulate" an animation of images on continuous objects? I've tried Sleep and WaitFor but I can't get it to work. I put the code.
Thanks.
Do While tableroC(pulsadoX + 1, h) = 0
tablero(pulsadoX + 1, h - 1).Background = fondoBotones
Sleep(100)
tablero(pulsadoX + 1, h).Background = flechaAbajo
Sleep(100)
If h = 6 Then Exit
h = h + 1
Loop
Thanks.
Do While tableroC(pulsadoX + 1, h) = 0
tablero(pulsadoX + 1, h - 1).Background = fondoBotones
Sleep(100)
tablero(pulsadoX + 1, h).Background = flechaAbajo
Sleep(100)
If h = 6 Then Exit
h = h + 1
Loop