Colision

punk
10-25-2000, 09:10 PM
Is there any way that I can tell a image that it is on a coodinate refering ( in relación ) to another image, not the form?

Punkrock on my veins..... ARRGGHHUU !

punk
10-25-2000, 09:34 PM
I forgot to say that I don't want to use BitBtl.. thanx

Punkrock on my veins..... ARRGGHHUU !

BillSoo
10-25-2000, 10:41 PM
The normal way is to keep track of all objects positions in memory, then check for collisions between all pairs.

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

punk
10-26-2000, 11:02 AM
Yeah.. I got my point... but how can I "draw" an invisible retangle for example using just X, Y coordenates and keep this in memory. Second... How can I tell if a picture box is inside this invisible retangle without using Left and Top Property...?
Thank you very much man

Punkrock on my veins..... ARRGGHHUU !

BillSoo
10-26-2000, 12:29 PM
I posted some code in the "Breakout" topic in this forum. It keeps track of collisions between the ball and the paddle, the ball and the walls, and the ball and the blocks so it is a simplified version of what you want, but maybe it will give you some ideas...

"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

punk
10-30-2000, 08:20 PM
Thankx a LOT

Punkrock on my veins..... ARRGGHHUU !

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum