Sign in to follow this  
savail

Interactive body parts in 2d game

Recommended Posts

Hey,

I'm wondering what would be the best approach to make a character be completely interactive with the environment just like in the "Happy Wheels" game. How are characters in "Happy Wheels" made anyway? Are they 3d models or each body part is a separate object and everything is just being linked into 1 character in game?

I would like to achieve a similar effect but in a completely 2d game (without 3d models), so that character would bleed just in place where he was shot, could be cut on half in many places of his body etc... ; P

Edited by savail

Share this post


Link to post
Share on other sites
This works more or less the same in 2D as it does in 3D. You create a number of physics bodies that are joined together with constraints as a single character, and use some filtering so the attached bodies don't collide with each other and explode the physics simulation. Box2D can do this, as can most 2D physics libraries. For rendering, you can just draw a sprite for each body piece for a simple approach.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this