Difference between revisions of "Simple Sprite Motion Assignment"
From WLCS
Line 2: | Line 2: | ||
* Each of the arrow keys is a button with an arrow on it, or you can use the words "Up," "Down," "Left," and "Right" | * Each of the arrow keys is a button with an arrow on it, or you can use the words "Up," "Down," "Left," and "Right" | ||
* You should put a colored label on the screen | * You should put a colored label on the screen | ||
− | + | * You may control the location properties of the label (label1.Top and label1.Left) | |
− | * You may control the location properties of the label ( | + | ** If you want to change the horizontal position by 10 pixels: '''label1.Left = label1.Left - 10;''' |
* Your program should change the position of the label on the screen when you hit the buttons. For example, if you hit the Up button, then your label should move | * Your program should change the position of the label on the screen when you hit the buttons. For example, if you hit the Up button, then your label should move |
Revision as of 13:09, 20 November 2009
- Create a visual basic program that looks like
- Each of the arrow keys is a button with an arrow on it, or you can use the words "Up," "Down," "Left," and "Right"
- You should put a colored label on the screen
- You may control the location properties of the label (label1.Top and label1.Left)
- If you want to change the horizontal position by 10 pixels: label1.Left = label1.Left - 10;
- Your program should change the position of the label on the screen when you hit the buttons. For example, if you hit the Up button, then your label should move