Interactive body parts in 2d game

Started by
0 comments, last by SeanMiddleditch 9 years, 10 months ago

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

Advertisement
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.

Sean Middleditch – Game Systems Engineer – Join my team!

This topic is closed to new replies.

Advertisement