GameMaker (2.3)
Icon

Extended Collision Functions

FrostyCat

You must be logged in to obtain assets

Description

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).

Age Rating: 4+

Versions

GMS2 - Version 1.0.1. Published April 21, 2020

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()

GMS2.3 - Version 1.1.0. Published September 20, 2020

First release for GMS 2.3+, added instance_nearest_ext() and instance_furthest_ext()

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait