yeah, inverse of tangent would be right. you can completely change the incline with stats, just by modififying a few things.
Higher Forces
RPG Mathematics: HP and MP equations
quote:
vanillacoke
Hey, guys, hogosha just registered, let''s be a little nicer to him and not scare him away.
Yeah, that''s pretty cool to say

I think you should put an Easter egg in your game where, if at the exact moment your player powers up (gains a level) the system clock mod max hp is less than current level, the player gets a huge bonus.
That being said, I do understand what you are trying to do (I think) but why are you using trig to begin with?
const int maxhp = 9999; // Or whateverconst int minhp = 100;const int levels = 100;const double slope = double (maxhp - minhp) / (levels - 1);int hp, level;// Later on, to calculate hp...void SniffThis (){ hp = slope * (level - 1) + minhp;}
Seems simper. It''s just a line formula.
20: ...Qg2 ++
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement