Bungie Rope: set sprite size based on elasticity?

Get help using Construct 2

Post » Mon Mar 12, 2012 1:43 pm

Hi all,

I am playing around with Physics at the moment and trying to build something like a bungie rope.

This is what I made so far and works quite well:

http://www.ubivis.de/bungie

The rope parts do stick together as they should (added Physics revolute joints) and the elasticity is doing the rest, but one thing I can't find a solution is to set the size of the middle part of the rope that the rope looks like it is not cut into three separate parts.

What I tried was, is to set the size of the middle part every tick, but what I can't find is an indication of the force that works on the elasticity.

I do hope, that someone has an idea how to get around that?

Many thanks in advance

CapX so far: http://www.gogwiki.com/temp/bungie.capx
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Mon Mar 12, 2012 10:48 pm

It breaks the physics sim if you change the size of a physics object. Use another non-physics object to cover the gap.

http://dl.dropbox.com/u/5426011/fixed/ubivis.capx
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Tue Mar 13, 2012 7:41 am

many thanks, this is a really good idea...

I will try myself first, but thanks for the capx too :)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Sun Oct 18, 2015 10:18 pm

Thanks!
Positive, inspiring and fun games!

www.crystalgames.space

Enjoy!

---
****
Get the sources (.capxs) of my games here: https://www.scirra.com/store/sellers/ignas-dauksa-533
****

Peace!
B
16
S
7
G
3
Posts: 171
Reputation: 3,317


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 34 guests