Difference between revisions of "Simple Sprite Motion Assignment"

From WLCS
 
(One intermediate revision by the same user not shown)
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
* Read pp. 402-403
+
* You may control the location properties of the label (label1.Top and label1.Left)
* You may control the location properties of the label (lbl.Top and lbl.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
 
* 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 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;
    • 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