Game Play

Collision Checking

Downloadcollision_circle_list(x,y,radius,obj,prec,notme)   Returns a ds_list of all instances of the given object colliding with the given filled circle. Downloadcollision_ellipse_list(x1,y1,x2,y2,obj,prec,notme)   Returns a ds_list of all instances of the given object colliding with the given filled ellipse. Downloadcollision_line_first(x1,y1,x2,y2,object,prec,notme)   Returns the instance id of the given object colliding with the given line and closest to the first given point. Downloadcollision_line_list(x1,y1,x2,y2,obj,prec,notme)   Returns a ds_list of all instances of the given object colliding with the given line. Downloadcollision_point_list(x,y,obj,prec,notme)   Returns a ds_list of all instances of the given object colliding with the given point. Downloadcollision_rectangle_list(x1,y1,x2,y2,obj,prec,notme)   Returns a ds_list of all instances of the given object colliding with the given filled rectangle. Downloadcollision_triangle(x1,y1,x2,y2,x3,y3,object)   Returns true if there is a collision between the given triangle and the given object or instance. Downloadinstance_place_list(x,y,obj)   Returns a ds_list of all instances of the given object colliding with the current instance at the given position. Downloadmove_bounce_rectangle(x1,y1,x2,y2)   If the bounding box of the calling instance crosses the boundary of the given rectangle, bounce the instance in the opposite direction. Downloadnormal_detect(x,y,obj [,rad [,res]])   Returns a 2D surface normal for a point on the "surface" of an object. Downloadrange_finder(x,y,dir,range,object,prec,notme)   Returns the exact distance to the nearest instance of the given object in the given direction from the given point.

Comments? Click to Comment