Home | Forums | Articles | F@H
Help | Search | Members | Calendar | Forum Map | Cybervillage | Archive
Welcome Guest ( Log In | Register | Resend Validation Email )


>  IceTeks Forums -> Technology made cool -> Programming


  Archived - No replies allowed - start new thread insteadStart new topicStart Poll

>  Collision program, Turing
Track this topic | Email this topic | Print this topic
Graham
Posted: Jan 20 2006, 01:28 PM
Quote Post

Icicle

Group Icon

Group: IceTeks Newbies
Posts: 6
Member No.: 1 131
Joined: 12-January 06
Ice Cubes: 20



I need help making my program exit when to rectangles collide. thanks for any help
PMEmail Poster Top
Furball
Posted: Jan 20 2006, 03:23 PM
Quote Post

Beware of Squirrel

Group Icon

Group: Ice Age Members
Posts: 1 435
Member No.: 537
Joined: 30-September 04
Ice Cubes: 106627



QUOTE (Graham @ Jan 20 2006, 01:28 PM)
I need help making my program exit when to rectangles collide. thanks for any help

blink.gif lol okay. Can you explain this a bit more in detail? Are the rectangles racing? Are they bouncing around the screen?


--------------------
No, not the MASTER SWORD!

You Don't want your ring to get dirty now do you BILLLAYYY?!!

Balance of Traaaaaaaaadeees and Balance of Payyyyymennnts

That's right ladies, I gm'd spirit speak in a day ;)

OMG, Ryan you got 5 fleshrenderers after you, you're so screwed.
PMEmail Poster Top
Graham
Posted: Jan 23 2006, 03:01 PM
Quote Post

Icicle

Group Icon

Group: IceTeks Newbies
Posts: 6
Member No.: 1 131
Joined: 12-January 06
Ice Cubes: 20



its a racing game but like frogger and there is 3 lanes when the car touch i want it to exit
PMEmail Poster Top
Furball
Posted: Jan 24 2006, 02:40 PM
Quote Post

Beware of Squirrel

Group Icon

Group: Ice Age Members
Posts: 1 435
Member No.: 537
Joined: 30-September 04
Ice Cubes: 106627



Okay, I know what you mean now. This is waaaaaay too difficult to explain without confusing anyone. I wrote 2 huge paragraphs but was unable to make it sound easier. I can't explain is in depth but all I can say is you need to set boundaries for your car and test to make sure that your car's co-ordinates aren't the same as another car's. If the coordinates are the same, that means they've collided. But it's much more complex than that because you car will have more than one coordinate. It'll have a range of co-ordinates because it's not a single dot you're checking. So you might be checking to make sure that car 1's x value isn't surpassing car 2's x value from the range of 1 to 100 (because your car is going to be taking up enough space). It's too difficult to explain without showing you in the actual editor. Your best bet is to ask your teacher or the class wiz for help.


--------------------
No, not the MASTER SWORD!

You Don't want your ring to get dirty now do you BILLLAYYY?!!

Balance of Traaaaaaaaadeees and Balance of Payyyyymennnts

That's right ladies, I gm'd spirit speak in a day ;)

OMG, Ryan you got 5 fleshrenderers after you, you're so screwed.
PMEmail Poster Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Programming | Next Newest »

Topic Options Archived - No replies allowed - start new thread insteadStart new topicStart Poll

 



[ Script Execution time: 0.0541 ]   [ 13 queries used ]   [ GZIP Enabled ]

< Home | Forums | Contact >