Icon

Multi-Object Collisions

Rupeck

You must be logged in to obtain assets

Description

A selection of collision scripts which return a list of instances which are in collision with the given shape, as opposed to GM's built-in functions which only return ONE of the instances.

  • collision_multiple(x, y, object)
  • collision_rectangle_multiple(x1, y1, x2, y2, object, precise, notme)
  • collision_circle_multiple(x, y, radius, object, precise, notme)
  • collision_line_multiple(x1, y1, x2, y2, object, precise, notme)
  • collision_ellipse_multiple(x1, y1, x2, y2, object, precise, notme)
  • collision_point_multiple(x, y, object, precise, notme)

Example use:

var list = collision_rectangle_multiple(x1, y1, x2, y2, objEnemy, false, true);
for (var i = 0; i < ds_list_size(list); i++)
{
    var obj = list[|i];
    with (obj) instance_destroy();
}

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS1 - Version 1.1.0. Published April 2, 2015

Added collision_multiple script

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait