Monday, January 23, 2012

Someone know how to move a ball in a slant motion using visual basic 6?

Using Do until loop statements how to move a ball in a perfect slant motion?Someone know how to move a ball in a slant motion using visual basic 6?I haven't used VB 6 in forever so I don't exactly remember how to do graphics in it.



At any rate, you start the ball at coordinates (X, Y). You want to move to the right, or increase X, the same amount you move down, or decrease Y. This is moving from upper left to lower right. So say you start at (0, 0) which is the upper left corner of your form. (1,-1), (2,-2) and so on. You'll need to use bigger increments but you should get the idea.



So using a do loop I would do something like:

X = 0

Y = 0

move = 25

Do until X = 500

X = X + move

Y = Y + move

Loop

  • used boats
  • italian translation to english
  • No comments:

    Post a Comment