School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,354 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,918 people online right now. Registration is fast and FREE... Join Now!




Making extangeable armor move with your character

 

Making extangeable armor move with your character, xD Lets discuss!

frostyraver

25 May, 2009 - 07:01 AM
Post #1

D.I.C Head
Group Icon

Joined: 21 Apr, 2009
Posts: 73



Thanked: 2 times
Dream Kudos: 50
My Contributions
Here's a subject I'd like to touch up on, I've looked around on google and only found 1 article that touches this subject well http://stackoverflow.com/questions/402541/...ar-in-a-2d-game How do you go about making interexchangeable armor move when your character moves? The armor has to be exchangeable, same with the character features.

I have this type of thing going in my BattleArena game going but it's only an image overlay.

This post has been edited by frostyraver: 25 May, 2009 - 07:04 AM

User is offlineProfile CardPM
+Quote Post


SixOfEleven

RE: Making Extangeable Armor Move With Your Character

25 May, 2009 - 07:47 AM
Post #2

Code Guru
Group Icon

Joined: 18 Oct, 2008
Posts: 2,905



Thanked: 165 times
Dream Kudos: 725
Expert In: C, C#, XNA, Game Programming, Programming Concepts

My Contributions
QUOTE(frostyraver @ 25 May, 2009 - 09:01 AM) *

Here's a subject I'd like to touch up on, I've looked around on google and only found 1 article that touches this subject well http://stackoverflow.com/questions/402541/...ar-in-a-2d-game How do you go about making interexchangeable armor move when your character moves? The armor has to be exchangeable, same with the character features.

I have this type of thing going in my BattleArena game going but it's only an image overlay.


This is similar to the difficulties faced when you are doing tiling. Image overlay is a good method to use. What you might think about doing is like what more advanced image processing and merge the layers down to create the sprite. Then, when the player changes something about the sprite, get the separate parts of the sprite and merge them to create a single sprite. I'm not an animation expert so I can't really help with that. You could try something similar to bone animation in 3D. When the sprite moves, each 'bone' in the sprite would move in a specific pattern and the armor/weapon would do the same.
User is offlineProfile CardPM
+Quote Post

WolfCoder

RE: Making Extangeable Armor Move With Your Character

25 May, 2009 - 12:44 PM
Post #3

ヒヒヒー
Group Icon

Joined: 5 May, 2005
Posts: 5,130



Thanked: 29 times
Dream Kudos: 1575
Expert In: ゲームのプログラム、かわいい

My Contributions
Ah, this is something designers have been doing since the NES. You get a new weapon, so it looks cool if you can see yourself holding it. BannedStory does a good job at showing you how all the characters are made. Everything is a part and fitted to the character carefully. Me? I was going to make a sprite the same size as the character, or proportionally bigger/smaller so that she's holding the correct weapon.

I do this by simply loading a flattened version of the character in question, and drawing over it in a new layer to help myself match it all up.
User is offlineProfile CardPM
+Quote Post

stayscrisp

RE: Making Extangeable Armor Move With Your Character

25 May, 2009 - 02:28 PM
Post #4

Mouth->Insert(Foot);
Group Icon

Joined: 14 Feb, 2008
Posts: 1,379



Thanked: 53 times
Dream Kudos: 300
My Contributions

Some 2D games use sprites that are split into various different parts, these parts can then be interchanged to fit with specific weapon sets.

For example if a character carried a weapon in their right arm you could make this separate from the main sprite and change it accordingly.

Same with armor, separate the torso then change between it.
User is offlineProfile CardPM
+Quote Post

frostyraver

RE: Making Extangeable Armor Move With Your Character

24 Jun, 2009 - 01:59 PM
Post #5

D.I.C Head
Group Icon

Joined: 21 Apr, 2009
Posts: 73



Thanked: 2 times
Dream Kudos: 50
My Contributions
QUOTE(stayscrisp @ 25 May, 2009 - 02:28 PM) *

Some 2D games use sprites that are split into various different parts, these parts can then be interchanged to fit with specific weapon sets.

For example if a character carried a weapon in their right arm you could make this separate from the main sprite and change it accordingly.

Same with armor, separate the torso then change between it.


Yeah I kinda understand how this is all put together now, I've applied it (to somewhat) extent in my game.
User is offlineProfile CardPM
+Quote Post

stayscrisp

RE: Making Extangeable Armor Move With Your Character

24 Jun, 2009 - 02:17 PM
Post #6

Mouth->Insert(Foot);
Group Icon

Joined: 14 Feb, 2008
Posts: 1,379



Thanked: 53 times
Dream Kudos: 300
My Contributions

Great! Any screenshots? biggrin.gif
User is offlineProfile CardPM
+Quote Post

frostyraver

RE: Making Extangeable Armor Move With Your Character

24 Jun, 2009 - 04:19 PM
Post #7

D.I.C Head
Group Icon

Joined: 21 Apr, 2009
Posts: 73



Thanked: 2 times
Dream Kudos: 50
My Contributions
QUOTE(stayscrisp @ 24 Jun, 2009 - 02:17 PM) *

Great! Any screenshots? biggrin.gif


http://kudmipz.org/frostydowns/Downloads/B...nav0.0.1.0c.zip

Not releasing the source as of yet, Check my tutorials I explain how to go about alot of things. It's all very basic skills to accomplish.


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM
+Quote Post

frostyraver

RE: Making Extangeable Armor Move With Your Character

15 Sep, 2009 - 07:59 AM
Post #8

D.I.C Head
Group Icon

Joined: 21 Apr, 2009
Posts: 73



Thanked: 2 times
Dream Kudos: 50
My Contributions
QUOTE(frostyraver @ 24 Jun, 2009 - 04:19 PM) *

QUOTE(stayscrisp @ 24 Jun, 2009 - 02:17 PM) *

Great! Any screenshots? biggrin.gif


http://kudmipz.org/frostydowns/Downloads/B...nav0.0.1.0c.zip

Not releasing the source as of yet, Check my tutorials I explain how to go about alot of things. It's all very basic skills to accomplish.


With this also I made separate things for the head/shoulder/legs/arms/feet, I might look up form graphics, or fool around with transparency some, It's works nontheless.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 07:16PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month