Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Animation with a textlabel

animation

  • Please log in to reply
2 replies to this topic

#1 rubanus

rubanus

    CC Lurker

  • Just Joined
  • Pip
  • 4 posts

Posted 16 July 2007 - 11:02 PM

Hi everyone,

I want to make a program wich animated a label from point 302; 170 to
point 302; 238 but not that is appears but that you can see it moves

I hope you can help me :)

thanks Rubanus
  • 0

#2 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 23 July 2007 - 11:18 AM

You simply need to change it's location and redraw.

Here is an example from a "racecar" game I had to make:

' move each picture box toward the finish line
        whitePictureBox.SetBounds(whiteNewLocation - whitePictureBox.Width, _
            0, 0, 0, BoundsSpecified.X)
        redPictureBox.SetBounds(redNewlocation - redPictureBox.Width, _
                    0, 0, 0, BoundsSpecified.X)

red and whiteNewLocation are just integers and would be 302 in your case.
  • 0

#3 rubanus

rubanus

    CC Lurker

  • Just Joined
  • Pip
  • 4 posts

Posted 10 August 2007 - 01:04 PM

hi thaks for your reply I'm sorry that I respond so late but I was on vakance :cool: I had an other solution founded with a timer and that it moves at every 'tick'
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download