Skip to content

Position_destroy_object

hpgDesigns edited this page Aug 8, 2021 · 1 revision

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

This is number 1

Clone this wiki locally