Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-12-2004, 03:59 PM   PM User | #1
bookworm
New Coder

 
bookworm's Avatar
 
Join Date: Oct 2003
Location: manitoba canada
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
bookworm is an unknown quantity at this point
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
__________________
bookworm is offline   Reply With Quote
Old 01-13-2004, 04:09 PM   PM User | #2
bookworm
New Coder

 
bookworm's Avatar
 
Join Date: Oct 2003
Location: manitoba canada
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
bookworm is an unknown quantity at this point
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
__________________
bookworm is offline   Reply With Quote
Old 01-13-2004, 07:59 PM   PM User | #3
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
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
Jason is offline   Reply With Quote
Old 01-16-2004, 02:58 PM   PM User | #4
bookworm
New Coder

 
bookworm's Avatar
 
Join Date: Oct 2003
Location: manitoba canada
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
bookworm is an unknown quantity at this point
thanks. yah. i figured it out
__________________
bookworm is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:00 AM.


Advertisement
Log in to turn off these ads.