Difference between revisions of "Simple Sprite Motion Assignment"
From WLCS
(New page: ** Create a visual basic program that looks like Image:simpleSprite.jpg ** Each of the arrow keys is a button with an arrow on it, or you can use the words "Up," "Down," "Left," and "R...) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | * Create a visual basic program that looks like [[Image:simpleSprite.jpg]] | |
− | + | * 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 | + | ** Figure out how you would want to change the vertical position |
+ | * 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 |
Latest revision as of 13:10, 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;
- Figure out how you would want to change the vertical position
- 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