Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Chaging sprites when armor changes (Tutorial)

Ok, here's my tutorial on making your character graphic change, when you change armor.
It works perfectly, the only catch is, you have to have the sprite for each and every armor.
Two Ways:
You can make it, so every combo of armor can change the sprite
Or just one piece or a two pieces
Either way, it's a few sprites to make it.

I'll post the sprites I used, I used the Black Water Sprite Gen to make the sprites, just because it's easier to get more of the same kind and look.

Ok, here we go:

For one character graphic

  • Go into common events and create a common event called: [character name] Sprite Switch

Please note! When doing a branch, pick the second tab to chose the armor that's equipped.
Code:
<>Conditional Branch: Hero [character name] [name of equip] equipped 
 <>Change Hero Graphic: [cname] [name of equip]
 <>
: Else Handler:
 <>
: End

Now, that's just for ONE ITEM OF ARMOR. And no combos.
Repeat that in the next slot for every item you want to switch graphics.

Now, if you wish to have combos, do this:

Code:
<>Conditional Branch: Hero [character name] [name of equip] equipped 
 <>Change Hero Graphic: [cname] [name of equip]
 <> Now, here, add another branch for combos, and change the graphic to include the shield, or helmet, etc...and if you want more things, you'll have to keep repeating this process
: Else Handler:
 <>
: End

Lastly:
Make an event in every map that you could switch armor and have it call the common event.

Just for help:

http://img49.imageshack.us/img49/4999/tutsystemcl7.png[/img]



Want to see it head on?
Download it!


Ok, I admit, I'm not good at writing and explaining things.
But if you download it and looks at the image, I'm sure it'll come out!
 
Yeah.

The same thing can be done if you want to have better stats if one set of armor is equipped. (Like in most RPGs)

It is pretty simple..but it took me a few eye soring hours to perfect it.
And I still have to go back and review it.
 
No, what's visual equipment? some script?

I don't really use scripts aside from stuff you can't do with events, which makes my script use very limited.
 
I think Visual Equipment is better.

What is it? Visual Equipment is a script wich will add a ragdoll effect to your game. Meaning,It will add armor on to your character once you equip it. It's very easy to use. Search around the forums for it.

But this is very usefull as well. Nice job! :D.
 
malick;228045 said:
Wouldn't you rather use something that YOU made though?

Certainly, of course I would. :please:

But there was no reason to make a bunch of sprites just for a tutorial, I am working on two templates, but I wasn't then. I was strictly taking requests (icons), and doing the odd thing here and there.

Thanks for the info on visual equipment, I'll check it out.
I rarely ever search for scripts, though.
 
i noticed a little error in your program, when the guy has un equiped everything, it still has the armor he last used, other that this its ok, and btw the event on the map its set to action button, not paralell but i guess every1 can figure that out by themselves... anyways nice one, im trying to do this in an other way without scripting, but its kinda hard kuz of the thing i just told you also since i made around 200 diferent kinds of armors helmet, shields, etc, its kinda hard you know? XD
 
souldragon19 said:
Visual Equipment is a script wich will add a ragdoll effect to your game.

Wtf? Ragdoll is related to FPSes, and when a character dies, it goes limp, and can be moved around like a "ragdoll". That's where the term comes from.
 
For battlers, I made Brenda's Visual Battlers... based on Visual Equipment (lots thereof). That way your battlesprites can have different gear and weapons in combat. 'Course that requires a lot of different battlesprites.

(Before you ask for a link, check my sig...)
 
samboy;291489 said:
Wtf? Ragdoll is related to FPSes, and when a character dies, it goes limp, and can be moved around like a "ragdoll". That's where the term comes from.

I think he might have meant paperdoll which would make more sense. You know, you stick paper clothes on them...
 
That no one here have seen that...
Mex, run as hard and long as you can.
The real before-event-syntax is @>, yours has <>. That means its postality knights...
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top