How do I Add Swinging Motion To Ball and Chain

Get help using Construct 2

Post » Sat Sep 06, 2014 6:35 pm

I've looked over tutorials and posts but can't seem to find what I am looking for exactly, or maybe it's right in front of me and I can't see it.

I have a ball and chain that are separate sprites and pinned together at their ends. I would like the ball to swing back and forth almost in a sine movement but not in a straight line, as if you were swinging a yo-yo back and forth on a string.

I've tried using physics, revolute joint, apply force, apply torque, but can't seem to get the swing and angle right. The chain won't need to curve except for the last few links, which i have as separate sprites and pinned to their ends.

Thanks for any help or pointers.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Sat Sep 06, 2014 7:28 pm

That's the best I can come up with. But it's wrong, it lacks inertia on the chain. I don't know how to implement it, perhaps you can think of something.
You do not have the required permissions to view the files attached to this post.
Last edited by eli0s on Sat Sep 06, 2014 8:30 pm, edited 1 time in total.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829

Post » Sat Sep 06, 2014 8:14 pm

Hey thanks eli0s

That's exactly what i was looking for. I'll try to figure out the inertia with a little trial and error.

You ROCK! ole wise one.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Sat Sep 06, 2014 8:31 pm

You are welcome (errr, young one)!
composer - multimedia artist
www.eli0s.com/en/
B
69
S
26
G
5
Posts: 1,146
Reputation: 9,829


Return to How do I....?

Who is online

Users browsing this forum: tdcostas and 1 guest