Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I wonder how do they implement the bone animation in the flash game http://www.foddy.net/athletics.swf Do you know any study materials which I can start to learn 2D bone system from? I just implemented a avatar system by compose multiple bitmaps in each frame(similar with maple story), but some guys tell me that, a bone system can save more art resources, so I want to learn some thing about that.

share|improve this question
7  
Just a suggestion: change "some gays" to "some guys" :) –  bummzack Dec 28 '10 at 9:12
    
A serious typing error, fixed :o) –  Huang F. Lei Dec 28 '10 at 12:48
add comment

1 Answer

up vote 7 down vote accepted
+50

I'm pretty sure the bones/joints in QWOP (the game you're referring to) are modeled using the Flash Port of Box2D. By pressing the buttons you apply forces to these joints and make the character move eventually.

On the Box2D page you'll also find ragdoll examples that might serve as a starting-point for your characters. You should be aware that creating animations using such a setup (eg. using a physics-engine and apply forces to joints) can be very complicated and might not yield the desired results.

If you just need a "skinnable" avatar, it would probably be simpler to use pre-animated characters. You can use the bones-system of Flash for this and replace the different MovieClips (eg. upper leg, lower leg etc.) at runtime to get some sort of skinning.

Update: I created a very basic example how you could easily change the appearance of an animated character (click to change skin, sorry for crappy art). Source file is here. Different skins are on different frames. You could most likely extend this concept to dynamically load new skins though.

share|improve this answer
    
Thanks a lot. I will begin from Box2D. –  Huang F. Lei Dec 28 '10 at 13:45
1  
Could you please re-up this file? The link is dead. –  bottleboot Oct 21 '12 at 16:23
    
@bottleboot Example is here, source is here. It's nothing spectacular though.. just changing the frames of each skin-component (eg. lower-arm, hand, etc.) using ActionScript. –  bummzack Oct 22 '12 at 6:56
    
@bummzack Ooh thanks a lot!! This is very useful. –  bottleboot Oct 22 '12 at 9:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.