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
No comments:
Post a Comment