Results 1 to 3 of 3

Thread: How would I move something around...?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    4

    Post

    How do i move something around screen using the keyboard? I want to move a shape around when i press the keys. Also, i want it to shoot a "bullet" out and when it hits another shape, cause both to be removed.
    if you could tell me the source code, that would be VERY MUCH appreciated. thank you.

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    In the keydown section of your form put,
    If keycode = vbkeyleft then image1.left = image1.left - 100

    I do have code for collision detection, but please give me some time, the code is on my other computer and I never memorized that line (it's a long line).
    Email me at [email protected] and I will send some samples, and show you how to move the images smoother.


    Steve

  3. #3
    Lively Member *Super Sniper*'s Avatar
    Join Date
    Jan 2000
    Location
    Portland, OR
    Posts
    81

    Post

    Also you will need to set your key-preview proporty to true.


    ------------------
    Website

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