PDA

View Full Version : Collides() and its parameters


zehlein
04-14-2008, 06:09 PM
According to the manual Collides() should be called with 5 parameters:
list COLLIDES(Sprite, X, Y, CollideX, CollideY)
but the compiler complains about a wrong number of input parameters if I pass 5 parameters (with 4 parameters the compiler doesn't give an error message).
Alain, could you please explain what the CollideX and CollideY parameter is for?

kornalius
04-16-2008, 06:32 PM
It's 4 parameters. I must have forgotten to send Eric the latest definition.

Collides(Sprite$, X$, Y$, Var$);

Var$ is a list that contains all sprites that collides with Sprite$ at coordinates (X$, Y$).