View Full Version : Visual Basic.Net help

01-12-2004, 04:59 PM
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, 05:09 PM
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, 08:59 PM
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, 03:58 PM
thanks. yah. i figured it out