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 7936
       
|
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
         
  
|
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
|
|
|