Hello. I am developing a game and for this game 2 of my sprites appear to be flying to the right. i have acomplished this by allowing an image box with the skay on to scroll accross my form from the right to the left. however, once the image has scrolled off the screen i can not get it to reset it self so that it it can scroll continuously.
back_star = my timer
sky = the image of the sky
Private Sub Form_Load()
back_star.Enabled = True
back_star.Interval = 1
End sub
Private Sub back_star_Timer()
back_star.Enabled = True
If back_star.Enabled = True Then
sky.Left = sky.Left - 50
Else
If sky.Left <=sky.Left -4920 then
sky.Left = sky.Left + 0
End If
End If
End Sub
This is my code.
please could you take a look and show me where i have gone wrong or any alternative coding.