So.. I'm making a turn based combat game, pretty much Pokemon. So here's the problem, I'm trying to make an hp bar with values. Okay let me explain.
I have it set that if I press the move, it will deal 52-62 (random) damage.
All the other moves have different damage outputs. Which I have to make it so all of them do damage to the hp bar.
The problem is though, is how I even make it go on direction. See I set the length of the hp to be 280 (the starting value for my hp) But for each set of damage I want, I don't know how I can really damage the hp bar at all, without a set amount of damage. This is meant to be fun, not just spam the best moves and win. It's set to be balanced, so I need a bit of help here. Right now I'm building the basic hp bar for the enemy Pokemon, so I can't show a link.