Results 1 to 3 of 3

Thread: Animate Object to Coordinates

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Posts
    94

    Question Animate Object to Coordinates

    I'm looking for some example code to help me code how a 16x16 picturebox will animate to x,y coordinates using a timer.tick event

    Picture Box start point is 100,100

    Its End Point is unkown... it could be 200,200 or 101,100 for example.

    I need a b-line to this new coordinate. and how fast it gets there depends on the timer.interval property,

    Thankx for any help
    Last edited by Evad; May 1st, 2003 at 03:27 AM.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2002
    Posts
    94
    Any Ideas...

  3. #3
    New Member
    Join Date
    May 2003
    Location
    Charleston, SC
    Posts
    6

    Lightbulb

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer9.Tick

    If PictureBox1.Left = 96 Then
    Timer1.Enabled = False
    Else
    PictureBox1.Left = PictureBox1.Left + 2
    PictureBox1.Refresh()
    End If
    End Sub


    hope this helps dude... the only problem i see with this is if u have a slow computer the refresh call really slows it down. there has to be a better way..right?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width