gotdamojo06 Posted November 8, 2003 Posted November 8, 2003 (edited) How do i make an object move? and the loop when it gets to a certan spot? This is what i have under my timer... Private Sub tmrshot_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrshot.Tick imgbullet.Left = imgbullet.Left + 10 If imgbullet.Left = 656 Then imgbullet.Left=264 End If End Sub I want it to stop and start over at the spot it started at. Edited November 8, 2003 by gotdamojo06 Quote
CattleRustler Posted November 9, 2003 Posted November 9, 2003 well you have to make sure it will ever be at exactly 656, and by the looks of it it won't, try If imgBullet.left >=656 then imgBullet.Left=264 End If Quote mod2software Home of the VB.NET Class Builder Utility - Demo and Full versions available now!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.