Results 1 to 3 of 3

Thread: moving images/ collision detection

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Posts
    537
    all I want to know is what is the easyist way to move an image on my form?
    then how do I tell if it 'hits' something?

    thanks
    pnj

  2. #2
    Junior Member
    Join Date
    Jan 2001
    Posts
    29

    Question This will move the picture

    To move the picture box you could put these in a timer. To start/stop it Enable/Disable the timer. To change the speed change the interval of the timer

    'Move Up:
    Picture1.Top = Picture1.Top - 10

    'Move Down:
    Picture1.Top = Picture1.Top + 10

    'Move Left:
    Picture1.Left = Picture1.Left - 10

    'Move Right:
    Picture1.Left = Picture1.Left + 10

    You could use combonations of these, and change the 10 to make the picture move in different angles.

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    There are TONS of collision detection threads...do a search for them...I've replied to most.

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