• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML GMS2 Physics joints

sercan

Member
Hi,

I have one instance of an object, lets say obj_A, in the room. And another instance of another object, obj_B.

obj_A has a joint anchor with obj_B. Up to this point it s pretty ok.

If there is only one instance of an object in the room, no problem. but having more than one instances, joint fails.

When I add more instances of obj_A and obj_B, is there a way to specifize which instances are gonna have joint and which will not?



Thanks.
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
When I add more instances of obj_A and obj_B, is there a way to specifize which instances are gonna have joint and which will not?
Yes.

You need to use the instance IDs of the instances you want to join and not the object indices.
 
Top