Danis[h]
New Member
- Reaction score
- 19
Greetings. I've been working on and off on my tower defense for a while now, and I've been postponing this particular issue since I've yet to find a viable solution to my problem.
The Issue:
I am spawning my monsters from a random spawn table rather than in a set order. This means that I cannot set their hit points in the object editor, but have to modify it in-game.
I need a viable method of increasing a unit's health by f(x)=3x^2+22 every round so that the monsters at round 1 will have 25 hit points, 34 at round 2, 47 at round 3, 70 at round 4 and so on
So far I've based my units off of heroes and then modified their strength every round to match the hit points by the amount dictated by the function / (formula?)
Is there a solution to my problem, or is the method I am currently using viable? if it is not, why not?
Any Ideas, suggestions or comments would be greatly appreciated.
The Issue:
I am spawning my monsters from a random spawn table rather than in a set order. This means that I cannot set their hit points in the object editor, but have to modify it in-game.
I need a viable method of increasing a unit's health by f(x)=3x^2+22 every round so that the monsters at round 1 will have 25 hit points, 34 at round 2, 47 at round 3, 70 at round 4 and so on
So far I've based my units off of heroes and then modified their strength every round to match the hit points by the amount dictated by the function / (formula?)
Is there a solution to my problem, or is the method I am currently using viable? if it is not, why not?
Any Ideas, suggestions or comments would be greatly appreciated.