How do I make a joint of different instances

0 favourites
  • 5 posts
From the Asset Store
Adjusting the game screen for different resolutions (Letterbox scale)
  • Hello,

    I try to make a snake, that is made of balls.

    Balls - are the different instances of one sprite.

    At first moment i have only head (first instance).

    When i press "space" button, another instance is creating and i want to connect it to head, using revolute joint.

    To do it, i pick the object, that was created , then i choose an action "create phisic limited revolute joint",

    but i can't understand how to point the instance i want to connect to.

    There is no problems, when the head is a different sprite, but i want to use an instance of the same sprite.

    Thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Create a family with this sprite.

    You will be able to pick to one sprite instance and one family instance in the same event and then create a physics joint between them.

  • Thank you,

    unfortunately families are not available in free version,

    is creating a family the only way ?

  • AFAIK the only way to do it without families is to use two separate body segment objects (they can look the same), and alternate each segment.

  • The chipmunk physics behavior is another way. You just specify the uid of the other object to connect to with it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)