Results 1 to 3 of 3

Thread: Controls

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    35

    Unhappy

    I havent been programming in anything for long, I needed to know how to make a picture box move in the direction that the keys control it (i.e. left makes it go left say 10 pixels, etc. ) I have currently 1 form and 1 pic box if that help Thanx in advance for any help.

    Also does anyone know how to make a graphic 'fly' like the ship in asteroids, how it seems to glide across the screen then slow down? Thanx again.

  2. #2
    Guest
    This [url="http://members.home.net/theluckyleper/"]Website[/b] may be of help to you.

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    You must make the picbox enabled to flase. then:
    Code:
    'in the forms keydown event
    if keycode = vbkeyright then pic1.left = pic1.left + 10

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width