You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

Game Play :: Collisions

collision_circle_list(x1,y1,radius,obj,prec,notme)
Returns a list data structure populated with the ids of instances colliding with a given circle, or noone if no instances found.
collision_ellipse_list(x1,y1,x2,y2,obj,prec,notme)
Returns a list data structure populated with the ids of instances colliding with a given ellipse, or noone if no instances found.
collision_line_first(x1,y1,x2,y2,object,prec,notme)
Returns the instance id of an object colliding with a given line and closest to the first point, or noone if no instance found.
collision_line_list(x1,y1,x2,y2,obj,prec,notme)
Returns a list data structure populated with the ids of instances colliding with a given line, or noone if no instances found.
collision_normal(x1,y1,obj [,rad [,res]])
Returns a 2D "surface normal" (in degrees) at a given point on or near an instance detected within a circular test area.
collision_point_list(x1,y1,obj,prec,notme)
Returns a list data structure populated with the ids of instances colliding with a given point, or noone if no instances found.
collision_rectangle_list(x1,y1,x2,y2,obj,prec,notme)
Returns a list data structure populated with the ids of instances colliding with a given rectangle, or noone if no instances found.
collision_triangle(x1,y1,x2,y2,x3,y3,object)
Returns true if there is a collision between a given triangle and a given object, false otherwise.
instance_place_list(x,y,obj)
Returns a list data structure populated with the ids of instances which would collide with the current instance if it were placed at a given position, or noone if no instances found.
range_finder(x,y,dir,range,object,prec,notme)
Returns the exact distance to the nearest instance of an object in a given direction from a given point, or noone if no instance is found.