Making an object swing from rope to rope

Nibbie
Posts: 1
Joined: 2012.02
Post: #1
I've been trying to make an object swing from rope to rope using Cocos2D and Box2D. I've had a lot of issues right from setting up the ropes. I found a tutorial (http://www.cocos2d-iphone.org/archives/1112) that shed some light on issues, but I am still quite lost. Please could someone help me. Thanks in advance!
Quote this message in a reply
Member
Posts: 96
Joined: 2011.07
Post: #2
Are you making a Tarzan game? (if so let me know when it's ready).

I'm not familiar with cocos or box2d but I would imagine that first you would make the ropes swing (either a pendulum or segments / dots connected where every segment would act under gravity).

In the pendulum case once the character is attached to it you would move it according to the angle of the pendulum and the radius (distance from the attach point of the Liana/rope). In the segment case the character would be attached to one of the segments and temporarily become a part of the rope structure.

In any case I'd start off as simple as possible and not try to solve the entire problem at once.

respect,
pk

iFrog is coming.
Quote this message in a reply
Post Reply