Position_destroy_object - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Destroys all instances of the given object that collide with the given position.

Parameters

Parameter Data Type Description
x cs_scalar x coordinate of the position
y cs_scalar y coordinate of the position
obj integer object to destroy the instances of

Return Values

void: This function does not return anything.

Example Call

// demonstrates destroying instances of an object at a random position in the room
position_destroy_object(random(room_width), random(room_height));

NOTOC