BoneMovement and Physics Problem

For questions about using Classic.

Post » Mon Jan 04, 2010 12:42 pm

Hi,

Some time ago I saw this Box2D demo...
http://box2dflash.sourceforge.net/

and I wondered if I could create a character like this using Construct. I just need this character, without the possibility to control it. I want it to fall down in a more or less physical correct way. I actually want to keep it very simple, using just 2 arms, 2 legs, chest and head, that's all.

I tried it this way: I created some Sprites for the body parts, connected them with the BoneMovement behavior and added the Physics Behavior (+ Gravitation). The "Character" is falling down now but the body parts are flying around in a totally uncontrolled way!?

How can I do that? Or is there a finished version of something like this?
Thx in advance!
B
1
G
3
Posts: 4
Reputation: 833

Post » Mon Jan 04, 2010 3:34 pm

Sorry bone movement wasn't designed for this.
This cap has some elements that might be useful. Its drag and drop on the head, but you could use other behaviors to get a ragdoll feel.
[url:380y5j06]http://dl.dropbox.com/u/666516/linebone.cap[/url:380y5j06]
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273

Post » Mon Jan 04, 2010 3:53 pm

dont use bone movement, just use physics, and connect the bones to eachother using physics hinges. also, put all the bone sprites in a family, and for each one disable physics collisions with that family
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Mon Jan 04, 2010 8:24 pm

thx for the help. i tried it the way lucid described it...

http://www.oinobareion.at/files/hinges.cap

as you can see, I connected the 'bones' using hinges. but when the character reaches the floor, it continues turning around in a very strange way. is this because of the collision detection? how can I make the character lying on the floor motionless?
B
1
G
3
Posts: 4
Reputation: 833

Post » Tue Jan 05, 2010 9:12 am

So here is my project file...
http://www.oinobareion.at/files/undersiege.cap

I hinged all the body parts together. As you can see, the knight is behaving a little bit 'unsettled' :-) how can I change that?
B
1
G
3
Posts: 4
Reputation: 833

Post » Tue Jan 05, 2010 10:54 am

Ok, I was able to fix the problem by myself. I simply had to change the collision masks for the body parts to 'Ellipse' and the whole think looks much better. Thx anyway!
B
1
G
3
Posts: 4
Reputation: 833


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 13 guests