PDA

View Full Version : sample4


matteo.m
10-26-2006, 09:37 AM
in the sample4.ppl i found:
Collide(i$, SpriteX(i$), SpriteY(i$), nx$, ny$) == NULL
i dont understand the purpose of nx$ and ny$
Thank you

kornalius
10-26-2006, 03:00 PM
It returns in nx$ and ny$ the first pixel location found for the collision. This way you know where it collided. It is not very neccessary in this function because you are checking for collision on a pixel point. But for CollideRect() it becomes interesting.