After various people contributed to the thread on pixel-perfect collision detection, I modularised it.
Download PPCollision module here (Requires AGS v2.71 or later!)
Full Documentation here
Simple interface, so I'll just copy the function names here:
With version 1.02, now added extender functions (in AGS 3.0 and up) so that you can use also:
Download PPCollision module here (Requires AGS v2.71 or later!)
Full Documentation here
Simple interface, so I'll just copy the function names here:
// Functions: // // The module allows you to use pixel-perfect collision detection // instead of the default rectangle-based collisions of AGS // // PPColliding.CWithC(Character *a, Character *b); // PPColliding.CWithO(Character *a, Object *b); // PPColliding.OWithC(Object *a, Character *b); // PPColliding.OWithO(Object *a, Object *b); // Check if a and b are colliding, for different types // // PPColliding.CWithAnything(Character *a); // PPColliding.OWithAnything(Object *a); // Check if a is colliding with any object or character. Returns // the value of GetLocationType for the first collision found, but there // may be more than one collision.
With version 1.02, now added extender functions (in AGS 3.0 and up) so that you can use also: