I am not great at complex math formulas, so I need your help.
I am making a combat game. When player attacks, attack animation plays at a certain speed, based on player’s skill.
I want it, so that 100% skill means 30% better action. For example if base damage is 100, with 100% power skill, players will be dealing 130 (30% better) damage.
now I want it, so that if player’s skill is 100% (fully upgraded), animation speed is 1. But I can’t figure out what the speed then should be if player skill is 1%.
Basically here’s the formula I need solved.
x+y=1
y= (x/100)*30 (y is 30% of x)
P.S. If you could also explain how the above formula is solved, or at least write the process in steps, it would be even better.
I think you’re making this problem wayy too complicated. It is pretty simple
local power_skill = 100
local bonus_damage = 0.3 * power_skill -- 1% power skill is %0.3, %100 power skill is 30% boost
local animation_speed = 100/power_skill -- perhaps? this means 100% skill is 1 animation speed, and 1% skill is 0.01? but this might be too slow, so you might need to look for a better solution