hi, i'm trying to create an animation where an image will move left across the screen by 33 pixels at a time until it hits the other edge and goes back, however i', not sure how to write the coding for this timer, below is all i could think of
Private Sub B3R1_Timer()
square3(0).left = square3(0).left - 33
If square3(0).left + square3(0).Width < ImgBackground.left + 132 Then
square3(0).left = square3(0).left + 33
ElseIf square3(0).left + square3(0).Width > ImgBackground.Width Then
square3(0).left=square3(0).left-33
End If
End Sub