Pin, making joint break off?

Get help using Construct 2

Post » Fri Oct 02, 2015 6:59 pm

I have a character, and I am spawning an object, and creating a joint to the character.
But now when I pin the character to something, or pin something to the character the joint breaks off =/
What gives?

I am disabling all collisions so nothing interferes, but it still breaks the objects joint so it is no longer connected =/
B
10
S
4
G
3
Posts: 223
Reputation: 3,458

Post » Fri Oct 02, 2015 9:29 pm

Can you post a .capx?

A common mistake is putting the pin action before the spawn action. This would be the first thing I would check.
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Fri Oct 02, 2015 10:53 pm

No its spawning the object, and pinning, and the object I distance or revolute jointed to the sprite previously, then breaks off after I pin the new object.
B
10
S
4
G
3
Posts: 223
Reputation: 3,458

Post » Sat Oct 03, 2015 12:20 am

Maybe post a screenshot of the logic you are talking about? I cant really visualize what is happening from your description. Here is a free host:
http://imgur.com/
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Sat Oct 03, 2015 1:02 am

EDIT: UPDATE:
took off pin, that is not the problem. But I am spawning another object, could spawning the object at the same point break the joint?
B
10
S
4
G
3
Posts: 223
Reputation: 3,458

Post » Sat Oct 03, 2015 1:11 pm

cs2curious wrote:EDIT: UPDATE:
took off pin, that is not the problem. But I am spawning another object, could spawning the object at the same point break the joint?


Seems like you are using the pin behaviour in combination with the Physiscs behaviour, which is not recommended..
Mixing other behaviours with the Physics behaviour can (and probably will) create unexpected results..

Without seeing your events and/or capx it will be nearly impossible to answer your question.
We can only guess.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Oct 05, 2015 3:58 pm

http://postimg.org/image/4tfj68lo5/

I'm spawning "blue" blue is spawning a weapon, and weapon is creating joint to blue.
When blue is ''falling'' i spawn a falling object to attach to so blue cannot get back in when out in falling area. ( this is a top down game, not using platform behavior)
"Weapon" then stops following blues movement, ie the joint is broken.

Blue is spawning both objects on different image points.
B
10
S
4
G
3
Posts: 223
Reputation: 3,458

Post » Mon Oct 05, 2015 8:25 pm

its not because of the resize either, i tried it with that off.
B
10
S
4
G
3
Posts: 223
Reputation: 3,458


Return to How do I....?

Who is online

Users browsing this forum: Kin, mickclarke, tinhofiel, TRMG, Yahoo [Bot] and 54 guests