Create a rope between two points.

Get help using Construct 2

Post » Fri Nov 23, 2012 3:24 pm

My question was originally a different one but I have changed as I found another way too approach the problem.

Lets say I have two sprites with a drag and drop behavior. Now I want to add a bar or rope between them. How could I go about doing this?Vitae2012-11-23 15:33:09
B
4
Posts: 46
Reputation: 617

Post » Fri Nov 23, 2012 3:49 pm

Give one of the objects "Pin Behavior" and Pin it to the second object using "Rope style". The distance these 2 objects are apart when you pin them will set the rope length.
B
12
S
4
G
2
Posts: 59
Reputation: 3,739

Post » Fri Nov 23, 2012 6:23 pm

I created a bunch of rope sprites with a variable called number. They all have physics enabled in behaviours.

This was the code I used to attach them from the balloon to the basket.

I had to increase the rope sprite density though, because the rope sprites would sometimes break apart when under heavy loads, but that seemed to fix the issue.




Hope this helps

Cheers

Howard
B
19
S
2
G
1
Posts: 24
Reputation: 3,597

Post » Tue Jan 29, 2013 2:08 am

Hi,HowieMonster. You can send CAPX file for download?
B
11
S
1
Posts: 2
Reputation: 2,064


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, armaldio, plinkie and 16 guests