Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
Thread: Visual Basic.Net help
01-12-2004, 03:59 PM #1
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
01-13-2004, 04:09 PM #2
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
01-13-2004, 07:59 PM #3
- Join Date
- Feb 2003
- 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...
01-16-2004, 02:58 PM #4
thanks. yah. i figured it out