The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: SirJackRex on May 24, 2007, 06:22:17 PM

Title: How to make your sprite change when amor changes
Post by: SirJackRex on May 24, 2007, 06:22:17 PM
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 made, I used the Black Water Sprite Gen (http://www.backwater-productions.net/RMXP_CSG/) to make my sprites, just because it's easier to get more of the same kind and look.

Ok, here we go:

For one character graphic

Please note! When doing a branch, pick the second tab to chose the armor that's equipped.

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


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


Just for help:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg49.imageshack.us%2Fimg49%2F4999%2Ftutsystemcl7.png&hash=f85619ff7c917b9b876ee2ebd72e68e6da803bca)



Want to see it head on?
Download it! (http://www.divshare.com/download/726600-9f7)


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!
Title: Re: How to make your sprite change when amor changes
Post by: Isith88 on May 25, 2007, 05:28:59 AM
Hey, great tutorial.  I actually never even thought of changing the sprite whenever different armors are equipped.

Oh, I downloaded the demo.  It works fine, except you left the event that calls the common event on Action Button.  It needs to be on Parallel Process.  Otherwise, very nice work. :)
Title: Re: How to make your sprite change when amor changes
Post by: SirJackRex on May 25, 2007, 05:42:00 AM
Hmmm....no, I didn't , because I remember doing it.

But I did forget to say one last thing:
I guess in every map, you have to have a "Call Common Event" and set it to call the common event that switches sprites. Then set the event to parallel process.