FrostyCat
Redemption Seeker
Extended Collision Functions
Companion scripts for built-in collision functions
Overview
Extended Collision Functions are enhanced versions of built-in collision functions. You can now easily check for collisions with multiple unrelated objects/instances at a time, and optionally pass in a script to ignore instances not meeting certain criteria.
Downloads
GMS 2.3.7 and above: Link | Repository
GMS 2.2.5 and below: Link | Repository
YoYo Marketplace (temporarily out-of-date): Link
Examples
Checking multiple unrelated object types
Using a script to include only instances matching certain criteria
Feedback Welcome!
If you have any suggestions for new constructors/use cases or bug reports, please open an issue or contribute on GitHub.
Companion scripts for built-in collision functions
Overview
Extended Collision Functions are enhanced versions of built-in collision functions. You can now easily check for collisions with multiple unrelated objects/instances at a time, and optionally pass in a script to ignore instances not meeting certain criteria.
Downloads
GMS 2.3.7 and above: Link | Repository
GMS 2.2.5 and below: Link | Repository
YoYo Marketplace (temporarily out-of-date): Link
Examples
Checking multiple unrelated object types
GML:
// Can stand on ground and turtles
if (place_meeting_ext(x, y+1, [objGround, objTurtle])) {
grounded = true;
}
GML:
// Die if colliding with a unit from another team
if (place_meeting_ext(x, y, objUnit, function(its, my) { return its.team != my.team; })) {
instance_destroy();
}
If you have any suggestions for new constructors/use cases or bug reports, please open an issue or contribute on GitHub.
Last edited: