Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: Rahl on February 26, 2009, 05:02:21 PM

Title: Hero Damage Animation Tutorial
Post by: Rahl on February 26, 2009, 05:02:21 PM

This is a tutorial to show you how to make the damage done to your character shown just aboce his head. It can be adjusted to be shown somewhere else, but for this tutorial we will put it just above his head.

This script in the following screenshots checks for change in the hero's Hp ever .1 seconds. Variable A checks heros Hp waits .1 second and Variable B checks it again. The brach checks if in the .1 seconds Variable A is lower than Variable B, and if so it subtracts Variable B from A (A-B= Damage Done) and shows damage accordingly throught branches. This is only a very good system if you wish to keep your damage considerably low. For this example and my own game I have maxed out the damage at 20. Enjoy.

(http://i43.photobucket.com/albums/e354/hellroc/Chara%20Help/Hrodmg1.jpg)
(http://i43.photobucket.com/albums/e354/hellroc/Chara%20Help/Hrodmg2.jpg)
(http://i43.photobucket.com/albums/e354/hellroc/Chara%20Help/Hrodmg3.jpg)


(http://i43.photobucket.com/albums/e354/hellroc/Chara%20Help/Hrodmg4.jpg)


Title: Re: Hero Damage Animation Tutorial
Post by: Rahl on February 26, 2009, 05:11:39 PM
Pictures suck at coordinates and really started pissing me off, so I just went with battle animations.
Title: Re: Hero Damage Animation Tutorial
Post by: Rahl on February 26, 2009, 05:17:06 PM
Well only one battle animation can be shown at a time and I would have modulated, but seeing as how only one can be shown yit wouldn't have worked. I didnt see any way around it.
Title: Re: Hero Damage Animation Tutorial
Post by: Prpl_Mage on February 26, 2009, 05:50:28 PM
I made the hero's attack being him changing sprite so that it looked like an attack and used battle animations for dmg numbers.
Your way seems to work pretty well though.