Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder bookworm's Avatar
    Join Date
    Oct 2003
    Location
    manitoba canada
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Visual Basic.Net help

    Hi. im making a program with moving objects. what i wanna know is if theres a way to tell if one object is entering the space occupied by another object.

    like cause i have this picture and i wanna know if one of my moving objects goes overtop of it. i can think of one way but that requires a whole ton of if statements. and i have like 9 different moving objects and 6 pictures that i wanna know if it goes over. so even using arrays thats alot of if statements.

    so is there like a way to know if one object goes over another

  • #2
    New Coder bookworm's Avatar
    Join Date
    Oct 2003
    Location
    manitoba canada
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts
    basically what im saying is....

    is there a way to tell if one moving picture box goes overtop another stationary picture box without using a whole bunch of if statements

  • #3
    Regular Coder
    Join Date
    Feb 2003
    Location
    California
    Posts
    925
    Thanks
    0
    Thanked 0 Times in 0 Posts
    why not write a method that utilizes those if statments and will return a true or false and is passed the moving object and the stationary object. That way when you need to know you just call that method each time and pass the correct peramiters...


    Jason

  • #4
    New Coder bookworm's Avatar
    Join Date
    Oct 2003
    Location
    manitoba canada
    Posts
    65
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks. yah. i figured it out


  •  

    Posting Permissions

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