Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /