YesNoOk
avatar

display damage dealt like in a final fantasy style rpg (Read 2541 times)

Started by narou303, December 06, 2022, 12:54:28 pm
Share this topic:
display damage dealt like in a final fantasy style rpg
#1  December 06, 2022, 12:54:28 pm
  • avatar
    • France
hello does anyone know a code to display the damage inflicted as in a final fantasy style rpg
Re: display damage dealt like in a final fantasy style rpg
#2  December 22, 2022, 02:23:18 am
  • *****
  • Shame on you!
    • USA
If you want your character to do it, you'd just make an explod in each attack.
You could use Statedef -2 to write it all in 1 chunk of code and look for each state. But copying it into each attack would be the easiest to figure out at first.

If the amount of damage is always changing, the system would be more complex. And if P2 has a shield, or something along those lines, it may not work properly.

You may want to spawn a helper but using the explod would be the easiest way. BUT if you use the explod, you'd have to make an animation for each value of the damage you'd do. OR you'd spawn 1 through 3 explods and put them next to each-other to "spell out" the damage dealt.

Do you have sprites for your numbers? are they 0 - 9 or 100/200/300?
vVv Ryuko718 Updated 10/31/22 vVv