The Daily Click ::. Forums ::. Klik Coding Help ::. How to make dynamic/wearable clothing for a character?
 

Post Reply  Post Oekaki 
 

Posted By Message

J.C



Registered
  22/03/2013 05:18:14
Points
  118
8th October, 2016 at 08/10/2016 20:57:32 -

Hi guys,

I've been wondering about this for a long while now. I know for sure that it is possible to have say, a playable character be able to change/wear different clothing/armor options. Problem is, I'm not entirely sure how to pull that off.

I am aware that one way is to separate the body parts from the player (head, torso, arms and legs are their own sprites), but let's say that's not the method I want to work with.

Here is an example that explains what I'm looking for: https://www.youtube.com/watch?v=DtPaiLxwcC8

(And yes, I know the same can be done for a weapons system too. )

Any ideas would be much appreciated.

 
n/a

LordHannu

Crazy?

Registered
  22/04/2007
Points
  7910

VIP MemberStarTeddy BearRibbonGame of the Week Winner2021 Halloween Competition Winner2022 Hi-Score Mash-up Competition (Bronze)2023 Halloween Competition (Bronze)2023 Halloween Competition Entrant
8th October, 2016 at 08/10/2016 21:44:51 -

You can have String variables for example:
Head = "Iron helmet"
Body = "Copper plate"

With that you can have diffrent grafical solutions.

*replace colors of the parts needed.
*make completely new sprites with every combinations.
*make separate bodyparts added on. Best solution I belive.

Edited by LordHannu

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
11th October, 2016 at 11/10/2016 16:42:22 -

They have separate active objects for the clothing with animations to match the player character. Like a paperdoll. then you just lock the clothing to the position of the player and their animations.

That's it.

The difficult part of course is drawing all the graphics. The code is trivial.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click