How would I go about doing stamina?
I’m making a Dark Souls like and I have a 3 hit combo, ranged attack and a block that all function but I’m wondering how would I give numbers that go into my stamina for using those actions?
I have my health bar functioning how I want it too but giving numbers to the stamina bar to deplete and regain is a bit confusing to me.
I’m sure it’s using variable modifiers and/or counters but would anyone know of any easy way or at least easily described?
Thanks!
-
Yeah I'd probably go for a variable here.
Have a variable modifier that "continuously" subtracts say 0.01, and turn it on while sprinting.
Have another that subtracts an amount when you swing the sword "on power." And turn that on when you swing the sword.
That kind of thing.
請登入寫評論。