Malignus
12-29-2006, 07:23 AM
So, I've decided that it would be much easier and make more sense if my new difficulty settings increased enemy stats by a fixed percentage rather than boosting them by a fixed amount, even a fixed amount pegged to the player level.
I've tried doing something like the following, but unfortunately it seems that Flash isn't rounding the results to an integer:
function adjustDifficulty () {
if (gameDifficulty=="normal") {
; }
if (gameDifficulty=="hard") {
MaxHP16 *= 1.2;
Math.round (MaxHP16);
Any thoughts on what I'm doing wrong?
I've tried doing something like the following, but unfortunately it seems that Flash isn't rounding the results to an integer:
function adjustDifficulty () {
if (gameDifficulty=="normal") {
; }
if (gameDifficulty=="hard") {
MaxHP16 *= 1.2;
Math.round (MaxHP16);
Any thoughts on what I'm doing wrong?