-
-
Notifications
You must be signed in to change notification settings - Fork 20
instance_place
CryoEagle edited this page Jan 5, 2019
·
1 revision
Checks for collision with specified object
instance_place(vec, go)
| Argument | Description |
|---|---|
Vector2 vec |
Position |
Type go |
With what object check collision |
Returns: GameObject
Checks for collision with specified object.
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