Skip to content

instance_place

CryoEagle edited this page Jan 5, 2019 · 1 revision

instance_place

Checks for collision with specified object

Syntax:

instance_place(vec, go)
Argument Description
Vector2 vec Position
Type go With what object check collision

Returns: GameObject

Description:

Checks for collision with specified object.

Example:

var inst = instance_place(Position, typeof(oDontTouch));
if (inst != null)
{
    show_debug_message("Touch!");
}

This code will show debug messahe "Touch!" because when object collide with GameObject oDontTouch variable inst isn't null.

Back to Instances

Clone this wiki locally