• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Windows Instance_create

B

Bowman

Guest
Hello everone

I dont know if i'm just doing something plain wrong but i'm getting this error

Object: object_box Event: Create at line 9: unknown function or script instance_create

here is the code that is broken
next_rope = instance_create(x, y, object_rope);

Does anyone know what i am doing wrong

Thanks
 
B

Bowman

Guest
Thanks for that. I was not sure if that was the right one to use
 
A

Aura

Guest
Read up on instance_create_depth() and instance_create_layer() in the Manual, yes.
 
B

Bowman

Guest
Hello again, so i've been trying to get this to work

Code:
offset_y = 0;
host = self;
next_rope = instance_create_depth(x, y + offset_y , 0, object_rope);

attach = physics_joint_distance_create(host, next_rope, host.x, host.y, next_repe.x, next_rope.y, false);

with)next_rope){
    parent = other.id;
}
But i am getting these errors
upload_2016-11-16_10-13-21.png
 
J

JDSTIGER

Guest
Hello again, so i've been trying to get this to work

Code:
offset_y = 0;
host = self;
next_rope = instance_create_depth(x, y + offset_y , 0, object_rope);

attach = physics_joint_distance_create(host, next_rope, host.x, host.y, next_repe.x, next_rope.y, false);

with)next_rope){
    parent = other.id;
}
But i am getting these errors
View attachment 4451
I dont know which line is '13' But Ill guess that the 'with)next_rope)' Might not be valid
 
Top