"create revolute joint" and z-order

Bugs will be moved here once resolved.

Post » Thu Dec 11, 2014 11:37 am

Problem Description
I have a game with a family of elements with the physics behavior. And one of the objects of this family is an element with 2 "imagePoints" which is used as a "joint". When I run the action "create revolute joint" for each of the two "imagePoints" I realized that the "joints" only work if they are above the other elements, as shown in .capx.

Attach a Capx

Description of Capx
Viewing the .capx simply click your mouse to activate the physical
https://dl.dropboxusercontent.com/u/130 ... index.html

Steps to Reproduce Bug
  • Create a family with physics objects
  • One of the elements will have 2 imagePoints and will be the joint to join the other elements
  • If the "element joint" is below the other elements to be joined the "create revolute joint" does not work

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack

Construct 2 Version ID
release 191 64bit/steam

ps: I talked by email with Julien explaining the problem, and he advised me to start this topic.
You do not have the required permissions to view the files attached to this post.
Posts: 10
Reputation: 691

Post » Thu Dec 11, 2014 4:37 pm

Closing as not a bug: since 'objects' includes both the black and green sprites and the joint object itself. you will also pick the joint object with the system 'pick objects overlapping joint image point' condition. This means it could pick both the joint and the black/green sprite. If more than one object is picked, the 'create joint' action picks an arbitrary one, and this happens to correspond to the Z order (purely by chance). If you try to create a joint to the same object, it fails.

Workaround: create a new family with just the black and green sprites in it, and only pick and create joints to that family.
Scirra Founder
Posts: 25,073
Reputation: 199,682

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests