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

Changes in 1.1.0

Added collision_multiple script

Version 1.1.0. Published April 2, 2015

Created with GameMaker: Studio v1.4.1567

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Tristan H 13 March 2017


Gravatar

Anonymous 20 July 2015

Great script, thanks!


Gravatar

Andreas M 13 March 2015

Works

Suggestion: You can easily modify one of the scripts to get a instance_place_multiple.

This review was left for a previous version of this asset.

Logo

Rupeck (Publisher) 02 April 2015

Thanks for the review, this has now been implemented!


Gravatar

Waldemar R 03 March 2015

Great idea!

a very clever concept, great code.

Thank You.

This review was left for a previous version of this asset.

What is the issue?

Back to Top