[Joints] Crazy Snake instead of my lamp

0 favourites
From the Asset Store
Its just different, enjoyable and no doubt worth playing !
  • Saitama

    For me the error is "Cannot read property 'c2obj' of undefined".

    Looking at your event, when you create the joint you set "Object2 UID" to 2.

    The wire does have a uid of 2 but it doesn't have the chipmunk behavior. You can only create joints between objects with the chipmunk behavior.

    In my example I used -1 for "object2 uid". That means just connect to a fixed location on the layout. The wire in my example didn't have the physics behavior either, it was just for a visual.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:vos2g558]In my example I used -1 for "object2 uid". That means just connect to a fixed location on the layout.

    Ok ! I didn't know that, good to know ! Thank you r0j0hound. Now the thing works and I understand why it didn't before.

    Good evening, thanks for the help everyone, I learned some stuff here, that's pretty cool !

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