Overview
This GameMaker Studio 2.x extension adds extended versions of built-in collision functions that allow checking multiple unrelated objects/instances and filtering by custom scripts.
Documentation
See the Wiki section on the official GitHub repository.
Examples
Checking multiple unrelated object types:
if (place_meeting_ext(x, y+1, [objGround, objTurtle])) {
grounded = true;
}
Using a script to include only instances matching certain criteria:
///@func isEnemy(inst, me)
///@arg inst
///@arg me
function isEnemy(inst, me) {
return inst.team != me.team;
}
====
if (place_meeting_ext(x, y, objUnit, isEnemy)) {
instance_destroy();
}
Extended Collision Functions is 100% open source!
Bug reports and contributions welcome on the official GitHub repository.
End User Licence Agreement (EULA).
Initial release.
Contains extended versions of:
- The Big 4 Functions: instance_place()
, instance_position()
, place_meeting()
, position_meeting()
- All collision_*()
functions
- All collision_*_list()
functions
- instance_place_list()
and instance_position_list()
First release for GMS 2.3+, added instance_nearest_ext() and instance_furthest_ext()