Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Interactive body parts in 2d game

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 savail   Members   

333
Like
0Likes
Like

Posted 19 June 2014 - 02:56 PM

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, 19 June 2014 - 04:00 PM.


#2 SeanMiddleditch   Members   

17493
Like
2Likes
Like

Posted 19 June 2014 - 07:14 PM

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.

Game Developer, C++ Geek, Dragon Slayer - http://seanmiddleditch.com

C++ SG14 "Games & Low Latency" - Co-chair - public forums

Wargaming Seattle - Lead Server Engineer - We're hiring!





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.